计算属性和侦听器open in new window
特别提示一个,深度监听,深度监听可以监听对象内属性的变化:
watch: { 'obj.attr': { handler: (value) => { ... }, deep: true } }