第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

正在回答

2 回答

這個(gè)由于this作用域的問(wèn)題,你的代碼中的this.arr的this代表著是當(dāng)前的Vue實(shí)例,所以是undefined,你換成arr,去掉this. 試試?

0 回復(fù) 有任何疑惑可以回復(fù)我~
這是代碼
<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>


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

外部數(shù)據(jù)檢測(cè)不到?

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)