wx.createSelectorQuery()

发布于 6 年前作者 xiexiuying8899 次浏览最后编辑 6 年前来自 ask

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 回复
qiang78
qiang781 楼6 年前

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

liuxia
liuxia2 楼6 年前

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

xiaoxiuying
xiaoxiuying3 楼4 年前

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