selectcomponent 返回null

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:19 762 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群

相关文章
第三方消息能发送到微信、公众号或者企业微信么?例如:微信客服和第三方即时通讯。
广告类型小游戏被恶意投诉存在虚拟支付功能,官方要求提交版号开通虚拟支付后再申诉,请问怎么办?
小游戏申请公测几天了,依然没有量进来?
小游戏申请公测之后一直没有量进来,麻烦帮忙补量,谢谢
为什么滴滴出行、网易严选等小程序可以不调用login要求用户授权,就弹出弹层要求获取用户手机号?
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8102
问题? 7428
如何快速搭建抽奖助手小程序(无需代码知识) 5108
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6063
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5673
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5265
如何解决渲染层网络错误Failed to load media? 16612
小程序找号找回 释放昵称? 2463
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2541
删除部分微信用户个人数据的通知,怎么删除? 5591