vue 主动触发 v-model 更新

2019-07-24  本文已影响0人  此昵称已被狗抢占
this.$refs.input1.value = "1";
this.$refs.input1.dispatchEvent(new Event("input"));
上一篇 下一篇

猜你喜欢

热点阅读