selectcomponent 返回null

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

相关文章
这样低俗游戏是如何上架的?
永久封禁的小程序怎样注销?
请问下,青蛙Pro小程序里面的这个背屏导航栏和背屏桌面图标 如何自行编辑样式、名称、图片、链接地址?
微信公众号菜单触发条件,为什么跳转一个超链接可以促发下发限制,跳转到公众号不可以?
shareMessageToFriend返回谜之错误
随便看看
微信开放平台跟公众平台有什么区别? 3607
怎么添加小程序支付功能? 4516
教育科技公司申请微信支付被拒绝? 4798
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9047
如何快速搭建抽奖助手小程序(无需代码知识) 6176
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7471