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

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

請(qǐng)問(wèn)為什么我寫(xiě)的代碼一樣就是顯示不出來(lái)

點(diǎn)擊了提交什么都不顯示

http://img1.sycdn.imooc.com//5d8c6bd70001063f19201030.jpg


正在回答

4 回答

<!doctype html>

<html>

?<head>

? <meta charset="UTF-8">

? <meta name="Generator" content="EditPlus?">

? <meta name="Author" content="">

? <meta name="Keywords" content="">

? <meta name="Description" content="">

? <title>Todolist</title>

? <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

?</head>

?<body>

? <div id="root">

?<div>

? <input v-model="inputValue"></input>

?<button @click="handclick">按鈕</button>

? </div>

?<ul>

? <!--todo-item?

v-for="(item,index) of list"?

:key="index"?

:content='item'

>

</todo-item-->


? <template-list

v-for='(item,index) of list'

:key='index'

:coent='item'

>

</template-list>

?</ul>

? </div>

<script>

Vue.component('template-list',{

props:['coent'],

template:'<div @click="headldclick">{{coent}}</div>',

methods:{

headldclick:function(){

alert('124')

}

}


})



//Vue.component('todo-item',{

// props:['content'],

// template:'<li>{{content}}</li>'

//})


new Vue({

el:"#root",

data:{

inputValue:"",

list:[]

},

methods:{?

handclick: function() {

this.list.push(this.inputValue),

this.inputValue=""

}

}

})

</script>

?</body>

</html>


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

在頁(yè)面按F12 查看代碼 有提示錯(cuò)誤的

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

F12看錯(cuò)誤

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

代碼是很誠(chéng)實(shí)的 肯定是有地方寫(xiě)的不對(duì)的 另外你不上代碼 只發(fā)個(gè)頁(yè)面截圖怎么幫你找你問(wèn)題呢?

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

舉報(bào)

0/150
提交
取消

請(qǐng)問(wèn)為什么我寫(xiě)的代碼一樣就是顯示不出來(lái)

我要回答 關(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)