uni.createSelectorQuery()
.in(this)
.select('#myCanvas')
.fields({
size: true,
node: true
})
.exec((res) => {
console.log(res)
});
只返回了[{"height":0,"width":407}] ,size的数据,现在是不支持返回node实例了吗
1 个回复
DCloud_UNI_JBB
可以试试node方法,文档链接 https://uniapp.dcloud.net.cn/api/ui/nodes-info.html#nodesref-node