原生js模拟vue的响应式


 js模拟vue的双向绑定     1、处理数据有getter和setter     2、数据改变 触发set     3、set通知watcher监听     4、watcher监听更新页面



  
  
  Document