摘要: 监听方式包含两部分 一,通过重写data 对象中Array原型上的方法,push/pop/shift/unshift/soft/reverse/splice,当调用这些方法修改数组时,会触发更新 二,通过defineproperty这个方法,不能监听到this.list[1] = 100;this. 阅读全文
posted @ 2021-03-08 21:29 qiuxd 阅读(1998) 评论(0) 推荐(0) 编辑