vue回车聚焦下一个input,动态绑定ref出现,refs拿到为undefined


回答
_this.$refs.label.foucs()_this.$refs[label].focus()_this.$refs['label'].focus()
上述三个有什么不同?
既然懂了,那么很明显,你读取的并不是你想要的
以上是 vue回车聚焦下一个input,动态绑定ref出现,refs拿到为undefined 的全部内容, 来源链接: utcz.com/a/70658.html


_this.$refs.label.foucs()_this.$refs[label].focus()_this.$refs['label'].focus()上述三个有什么不同?
既然懂了,那么很明显,你读取的并不是你想要的
以上是 vue回车聚焦下一个input,动态绑定ref出现,refs拿到为undefined 的全部内容, 来源链接: utcz.com/a/70658.html