羊仔
羊仔
  • 发布:2019-05-15 08:53
  • 更新:2019-05-15 08:53
  • 阅读:994

ts环境下 使用createSelectorQuery 报错

分类:uni-app

uni.createSelectorQuery()
.selectAll(tag)
.boundingClientRect(function(rect:any) {
console.log(rect);
that.sheight = rect[that.currentTab].height;
uni.hideLoading();
}).exec();

报错为
08:44:54.241 [tsl] ERROR at pages\category\category.vue:181
08:44:54.241 TS2339:Property 'exec' does not exist on type 'void'.
08:44:54.241 [tsl] ERROR at pages\news\news.vue:265
08:44:54.241 TS2339:Property 'exec' does not exist on type 'void'.
08:44:54.241 ERROR Build failed with errors.

2019-05-15 08:53 负责人:无 分享
已邀请:

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