获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
wx 换成 this
在组件中调用wx.createSelectorQuery().为nullonEditorReady() { const that = this; wx.createSelectorQuery().select('#editor').context(function (res) { that.editorCtx = res.context; res.context.setContents({ html: that.data.value }) }).exec() }, imageOnLoad: function(e) { var that = this; wx.createSelectorQuery().in(this).select(".classTaskDetail").boundingClientRect(function(e) { if (e) { that.setData({ height: e.height.toFixed(0) }); } }).exec(); }, 请问下怎么才能正确获取,
2019-06-18