app.json中usingComponents注册的全局组件,获取为时为nul

发布于 6 年前作者 xiulan1912797 次浏览最后编辑 6 年前来自 ask
  1. 我在 app.json 中声明了一个全局组件

  2. 在页面中使用 this.selectComponent('#id') 获取时返回的是 null

1 回复
renjie
renjie1 楼5 年前

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