app.json中usingComponents注册的全局组件,获取为时为nul
发布于 5 年前 作者 xiulan19 12630 次浏览 来自 问答
  1. 我在 app.json 中声明了一个全局组件

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

1 回复

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

回到顶部