wx.createSelectorQuery()
发布于 5 年前 作者 xiexiuying 8651 次浏览 来自 问答

VM2421:1 An SelectorQuery call is ignored because no proper page or component is found. Please considering using `SelectorQuery.in` to specify a proper one

3 回复

是怎么出现这个错误的?麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

这个问题都出现一年半了,微信就是不想解决,只要使用in(this),回调都不进,就报警告,如果一个页面存在相同的组件多次,组件的id是动态的,只要初始时是display:none的状态切换到显示,元素节点必然拿不到

这么常见的问题 官方没有遇到过吗

回到顶部