1***@qq.com
1***@qq.com
  • 发布:2019-07-25 14:56
  • 更新:2020-03-19 16:58
  • 阅读:1982

'this.$refs.mpvueCityPicker.show' is undefined

分类:uni-app

this.$refs.mpvueCityPicker.show is not a function. (In 'this.$refs.mpvueCityPicker.show()', 'this.$refs.mpvueCityPicker.show' is undefined);
这个问题是怎么引起的,怎么修改

2019-07-25 14:56 负责人:无 分享
已邀请:
维羊

维羊 - 小小的前端开发工程师

  • 1***@qq.com (作者)

    感谢,检查了一下是我把组件写在循环的里面了,就报错,放在外面就好了

    2019-07-25 17:20

i***@sam-world.com

i***@sam-world.com

请问你的那个问题是怎么解决的1048151913@qq.com

i***@sam-world.com

i***@sam-world.com

我现在解决不了上面'this.$refs.mpvueCityPicker.show' is undefined问题

aliang888

aliang888

你的组件代码怎么写,有这个吗?
<...ref="mpvueCityPicker"...>

该问题目前已经被锁定, 无法添加新回复