vue2.0 如何监听数组中对象属性的变化

  data () {
    return {
      phone: [
        {
          name: '工作',
          telNum: ''
        }
      ]
    }
  },
  watch: {
    phone: {
      handle: function (newVal) {
        console.log(newVal)
      },
      deep: true
    }
  }
  

报错信息
图片描述
代码如上,请问问题出在哪里?

阅读 18.4k
2 个回答

不是 handlehandler

watch: {
    phone: {
      handler: function (newVal) {
        console.log(newVal)
      },
      deep: true
    }
},
推荐问题