- 某些情况下,boundingClientRect回调不会执行的问题
Component({ methods: { getRect() { this.success = ""; //换一个名字,比如this._success就好使 // this.fail = ""; // this.complete = ""; var query = wx.createSelectorQuery().in(this); query .select(".wrap .content") .boundingClientRect(function (res) { console.log(res); }) .exec(); }, }, }); 在组件内部,给组件的success赋值(this.suceess,this.fail,this.complete),再调用boundingClientRect,回调函数不会执行。 报黄:An SelectorQuery call is ignored because no proper page or component is found. Please considering using `SelectorQuery.in` to specify a proper one.
2023-03-31 - 在页面onLoad函数中调用await wx.hideLoading,在部分ios机型下发生未知错误
在页面onLoad函数中调用await wx.hideLoading,在部分ios机型下发生未知错误,后面的js不会执行,也不报错。安卓机暂时未发现问题。 复现机型:iPhone12,iPhone13,iPhone7 plus
2022-10-18