Vue使用 $refs 报错的解决方法 ( $refs优雅使用方法 )

<form v-model="yourModel" ref="yourModel">
   <input v-model="yourModel.value" type="text">
</form>

<script>
   this.$refs.yourModel
</script>

猜你喜欢

转载自blog.csdn.net/wl724120268/article/details/103809391
今日推荐