摘要: data:{ checkValue:{} } that.checkValue[key] = [] 赋值无法实时改变变量;(数据其实最终被修改,但是并没有触发检测从而更新视图) 原因:Vue 不能检测到对象属性的添加或删除 解决:改用vm.$set方法可以触发检测 阅读全文
posted @ 2017-12-06 17:37 前端小透明 阅读(377) 评论(0) 推荐(0) 编辑