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

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

我的數(shù)據(jù)雙向綁定報(bào)錯(cuò),不知道為什么,第一次輸入數(shù)據(jù)時(shí)可以正常提交,列表里也會(huì)有數(shù)據(jù),后面再輸入提交就是空白

<template>

<div>

? <div>

? ? <input v-modal="inputValue">

? ? <button @click="handleSubmit">提交</button>

? </div>

? <ul>

? <todo-item v-for="(item, index) of list" :content="item"></todo-item>

? </ul>

?

?</div>

</template>


<script>

import TodoItem from './components/TodoItem'

??


export default {

components:{

'todo-item': TodoItem,

},

data () {

? return {

? inputValue: '123',

? list: []

? }

? },

? methods:{

? handleSubmit (){

? this.list.push(this.inputValue);

? console.log(this.list)

? this.inputValue = '';

? }

? }

}

</script>

https://img1.sycdn.imooc.com//5bac828e0001a37d07460460.jpg

https://img1.sycdn.imooc.com//5bac82910001968711780840.jpg

下面是todoitem模塊的代碼

<template>

? <li>{{content}}</li>

</template>


<script>

export default {

? props: ['content']

}

??

</script>


<!-- Add "scoped" attribute to limit CSS to this component only -->

<style scoped>


</style>


正在回答

1 回答

https://img1.sycdn.imooc.com//5bade6e100010ce105090301.jpg

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

舉報(bào)

0/150
提交
取消

我的數(shù)據(jù)雙向綁定報(bào)錯(cuò),不知道為什么,第一次輸入數(shù)據(jù)時(shí)可以正常提交,列表里也會(huì)有數(shù)據(jù),后面再輸入提交就是空白

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

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

幫助反饋 APP下載

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

公眾號(hào)

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