DOM:
this.$refs.refName.files[0]
若多个input ref命名相同
则
this.$refs.refName[index].files[0]
本文介绍了在Vue中使用DOM操作获取input元素中文件的方法,包括如何通过$refs访问单个和多个相同命名的input元素。
DOM:
this.$refs.refName.files[0]
若多个input ref命名相同
则
this.$refs.refName[index].files[0]
2557
280

被折叠的 条评论
为什么被折叠?