iphon6 下页面滚动事件,报错Illegal invocation
onLoad() { this.scrollFunc = throttle(this.scrollHandle, 300);},onPageScroll(e) { this.scrollFunc(e);},methods: { scrollHandle() { // top是距离视窗顶部的高度 if (this.loading || !this.callback) return; const query = wx.createSelectorQuery(); query.select('.lazyWrap').boundingClientRect(); query.exec((res) => { const top = Array.isArray(res) && res[0] && res[0].top; if (top < this.height) { this.callback(); } }); },} |
ios:10.0.1
设备iphone6
微信:7.0.3
小程序页面上的onPageScroll方法,报错Illegal invocation。 从2019.9.13号开始出现这个错误,之前没有遇到。
