2***@qq.com
2***@qq.com
  • 发布:2022-03-21 10:22
  • 更新:2022-03-21 10:39
  • 阅读:263

2020年的APP 更新HB之后 bind(this)无效了?

分类:HBuilderX

uni.getStorage({
key: 'qgtm',
success: function(res) {
this.qgtm = res.data;
console.log(this.qgtm[1]); //242
}.bind(this)
});
console.log(this.qgtm); //245

10:20:07.922 [Object] [] at pages/quanguo/index.vue:245
10:20:08.079 [Object] {"id":2,"num":2,"content":"申请人若首次参加出租汽车驾驶员从业资格考试,其全国公共科目和区域科目考试可在不同的区域完成。","answer":2,"choice1":"正确","choi...} at pages/quanguo/index.vue:242

2022-03-21 10:22 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

了解下如何正确的反馈Bug,这么反馈,别人无法回复。

提供下操作系统信息、HBuilderX版本号。

  • 2***@qq.com (作者)

    WIN10 63位 之前用的哪个版本不记得了,现在用的3.3.13,是不是因为vue版本更新的原因啊

    2022-03-21 10:49

该问题目前已经被锁定, 无法添加新回复