自定义组件不支持节点信息
如题:自定义组件不支持节点信息。
代码大概是这样,得到的是 null。
Component({ ready: function () { this.getHeight(res => {}) }, getHeight: function (callback) { wx.createSelectorQuery().select('.flex-tabs').boundingClientRect(rect => { console.log(rect) }).exec() },}) |
元素也当然是存在的,这是BUG还是设定如此呢?
