ts中的watch写法 徐铭源16211127 2021-10-22 402 阅读1分钟 @Watch('recordList') onRecordListChange(){ window.localStorage.set('recordList',JSON.stringify(this.recordList)); } 'recordList'是path @watch后面没有{}