ref引用类的使用问题 #155
ChrisLo0751
started this conversation in
General
ref引用类的使用问题
#155
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
lowcode 获取实例方式: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
当我为组件绑定了ref值为theGrid

接下来,期望通过
this.$refs.theGrid
获取该组件,结果获取失败,我尝试打印this.$refs
显示结果为undefined按照正常道理,refs 是一个实例会被挂载在vue上,于是我打印了vue这个实例查看,结果发现貌似ref的值报错了

请帮我勘误,是我的使用调试错误,还是本身功能有bug。谢谢
Beta Was this translation helpful? Give feedback.
All reactions