摘要: 一、watch 在选项参数中指定 immediate: true 将立即以表达式的当前值触发回调: var unwatch = vm.$watch( 'value', function () { doSomething() if (unwatch) { unwatch() } }, { immedi 阅读全文
posted @ 2021-04-12 11:48 徐同保 阅读(49) 评论(0) 推荐(0) 编辑