通过vue使用watch监听器实现输出“我叫什么,来自XX城市。“
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.min.js"></script>
</head>
<body>
<div id="app">
<p v-html="people(newValue)"></p>
</div>
<script>
const app=new Vue({
el:'#app',
data:{
people:{name:'xiaoming',
city:'chaoyang'}
},
watch:{
deep:true,
people(newValue){
console.log( ` 我是${this.name},来自${this.city}`)
},
},
computed:{
people1(value){
console("变化了")
}
}
})
</script>
</body>
</html>
```