Fork me on GitHub
摘要: Vue.js观察数组变化主要通过以下7个方法(push、pop、shift、unshift、splice、sort、reverse) 怎么实现? 通过对data数据中数组的这7个方法进行重新包装(注意只是data数据中的数组) 为什么不直接对Array.prototype的原型方法进行重新包装? 因 阅读全文
posted @ 2018-03-13 21:10 Alex_Zheng 阅读(15348) 评论(0) 推荐(0) 编辑