摘要: 1.在vue中,使用watch来响应数据的变化 <input type="text" v-model="userName" /> data() { return { userName: "wuHen", }; }, watch: { userName(newName, oldName) { cons 阅读全文
posted @ 2020-07-28 10:59 无痕-范特西 阅读(424) 评论(0) 推荐(0) 编辑