报错是这样:
14:01:37.727 [JS Framework] Failed to execute the callback function:
14:01:37.758 TypeError: Cannot read property 'nodeId' of undefined
14:01:37.788 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: Cannot read property 'nodeId' of undefined
运行的代码是这样的
const query = uni.createSelectorQuery().in(this)
query.select('.picker-scroll-mask').boundingClientRect((mask)=>{
// mask.height
this.list_height=mask.height
}).exec()
组件上绝对有 class='picker-scroll-mask' 这样的DOM
1 个回复
1***@qq.com
解决了吗