收藏
回答

this.selectComponent is not a function?

我已经在.json上添加了并且wxml上也有这个组件

但是调用this.selectComponent('#article')的时候就报错。

看了下其他答案

回答关注问题邀请回答
收藏

4 个回答

  • 灿.
    灿.
    2020-04-07

    用的mpvue,要this.$mp.page.selectComponent

    2020-04-07
    有用 3
    回复 2
    • 2020-09-11
      Taro该怎么写呢
      2020-09-11
      回复
    • 2023-06-06
      感谢,你这个方法完美解决了我的问题
      2023-06-06
      1
      回复
  • 2020-09-11

    Taro该怎么写呢

    2020-09-11
    有用
    回复
  • 小玉玉
    小玉玉
    2020-07-08

    wepy的话, this.$wxpage.selectComponent()

    2020-07-08
    有用
    回复
  • 是小白啊
    是小白啊
    2020-04-08

    麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

    2020-04-08
    有用
    回复 1
    • 灿.
      灿.
      2020-04-08
      好了,因为用的mpvue的问题
      2020-04-08
      回复
登录 后发表内容
问题标签