selectcomponent 返回null

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:19 889 0 全屏看文

AI助手支持GPT4.0

selectcomponent 返回null
框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 微信安卓客户端 7.0.17 2.12.0

我有一个自定义组件naid,在index.wxml中,有四个naid节点,各自具有一个互不相同的id,我查看节点树,能看到四个naid节点的,id也各自不一样,但是this.selectcomponent 只能查找其中三个,剩下那一个,总是返回null.不是必现的问题,但是每次出现,几乎都是一样的现象,只不过有的时候是第一个naid节点,有的时候是第二个,有的时候是第三个,有的时候是第四个

Framework type problem type terminal type wechat version basic library version applet bug wechat Android client 7.0.17 2.12.0 I have a custom component named naid index.wxml In, there are four naid nodes, each with a different ID. when I look at the node tree, I can see the, ID is different, but this.selectcomponent Only three of them can be found, and the remaining one always returns null. It is not a necessary problem, but every time it appears, it is almost the same phenomenon, except that sometimes it is the first naid node, sometimes it is the second node, sometimes it is the third node, and sometimes it is the fourth one

回答:

袁Z鹏:

弄个代码段出来瞧一瞧

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
小程序外卖好友拼单,如何发起群收款?
我们的游戏防沉迷做了更改,还请帮忙更改一下备案识别码,我们需要感谢!
微信公众号支付ios手机出现url未认证。安卓手机可以授权成功并支付,这是为什么?
开发者工具上传预览时提示:Error:无效的json文件:error:invalid file:
问题1:小游戏申请的公司主体和小游戏的申请软件著作权的公司主体是否必须统一?
随便看看
阿里云com、cn域名续费优惠码(2020年3月可用) 2862
线上防疫题库正确答案 2932
线上防疫题库正确答案(多选题) 4824
微信设置不可以使用小程序(游戏小程序) 5633
adsense申请已经支付的订单回退的网址 3212
BT面板查看网站入口、账号密码的命令 6007
ucloud海外服务器超级优惠券 3273
根据您的消费情况,您的延停权益已发生变化,变更后的延停权益为延停额度20.00元 5830
为什么我们喜欢迈克尔杰克逊。 4163
阿里云com、cn域名续费优惠码(2020年5月可用) 3585