试着输入以下内容:

  • app.data.uid = 'baidu'
  • app.$watch('uid',function(newVal){console.log('new uid: ',newVal)})
  • app.data.uid = 'ife2017'