1. computed 与watch一起使用
computed:{ rList(){ return this.list; }, }, watch:{ rList:"rData", //变量:方法 }
2.优先
默认:computed、watch,不执行methods; 触发某一事件 :methods、watch