外部数据检测不到?

请问这是什么原因呀?

请问这是什么原因呀?
2019-07-18
这是代码
<body>
<div id="app">
<div>
{{msg}}
<p>{{msg1}}</p>
</div>
</div>
<script>
var arr = 'new test'
var app= new Vue({
el:'#app',
data:{
msg:'hello vue!!',
another:'GoodBey vue!!'
},
watch:{
msg:function(newval,oldval){
console.log('newval is:'+newval)
console.log('oldval is:'+oldval)
},
},
computed:{
msg1:function(){
return 'computed:' + this.msg +' , '+ this.another + this.arr
}
},
methods:{
}
})
</script>
</body>举报