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

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

import TodoItem from './components/TodoItem' 昨天寫好了,能行,今天打開編譯器這行代碼報(bào)錯(cuò),頁面上啥都沒了,命令行項(xiàng)目也運(yùn)行不了了

<template>

? <div>

? <div>

? ?<input class="mgs" type="text" v-model="inputValue"/>

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

? ? ?</div>

? ?<ui>

? ?<todo-item

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

? ? :key='index'

? ? :content='item'

? ? :index='index'

? ? @delete='ccc'

? ? ></todo-item>

? ?

? ?</ui>

? ?</div>

</template>


<script>

import TodoItem from './components/TodoItem'


export default {

components:{

'todo-item':TodoItem

},

? ? data(){

? ? return{

? ? inputValue:'',

? ? list:[]

? ? }

? ? },

? ? methods:{

? ? aaa(){

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

? ? this.inputValue=''

? ? },

? ? ccc(index){

? ? this.list.splice(index,1)

? ? }

? ? }

? }

</script>


<style>


</style>


正在回答

4 回答

重新啟動(dòng)一下,就好了

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

你先檢查一下TodoItem這個(gè)組建有沒有問題,先查看子組件能否接收到父組件的值

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

你這是在本文件引用本文件?這樣是不行的啊。基本上所有的引用其實(shí)你可以直接在main.js里就行

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

我也是加上這個(gè)就報(bào)錯(cuò)

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

舉報(bào)

0/150
提交
取消

import TodoItem from './components/TodoItem' 昨天寫好了,能行,今天打開編譯器這行代碼報(bào)錯(cuò),頁面上啥都沒了,命令行項(xiàng)目也運(yùn)行不了了

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

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

幫助反饋 APP下載

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

公眾號(hào)

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