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

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

Vue is not defined

Vue.component('todo-item',{
??template:'<li>item</li>'
});

export?default?{
??data:function(){
????return?{
?????//?title?:'<span>?</span>This?is?my?first?way',
??????items:[],
??????newItem:'',
??????childWold:'',
??????isFinished:'thisIsLiClass',
??????ishouse:'thisisLihouse',
??????firstName:'',
??????lastName:'',
??????count:0,
??????title:'this?is?hello?world',
??????content:'balabalabalaba',
??????show:true,
??????inputValue:''
????}
??},
??computed:{
????fullName:function(){
??????return?this.firstName?+?'?'?+?this.lastName
????}
??},
??watch:{
????fullName:function(){
??????this.count++;
????}
??},
??methods:{
????handleClick:function(){
??????this.title?=?'how?are?you'
????},
????handleToggle:function(){
??????this.show?=?!this.show
????},
????handleSubmit:function(){
??????this.items.push(this.inputValue);
??????this.inputValue?=?'';
????}
??}

}


正在回答

2 回答

<!DOCTYPE?html>
<html?lang="en">
<head>
????<meta?charset="UTF-8">
????<title>Title</title>
????<script?src="./vue.js"></script>
</head>
<body>
<div?id="root">
????<div>
????????<input?v-model="inputValue">
????????<button?@click="handleSubmit">提交</button>
????</div>

????<ul>
?<!--<li?v-for="(item,index)?of?items"?:key="index">{{item}}</li>-->
?<todo-item?v-for="(item,index)?of?items"?:key="index"?:content="item"></todo-item>
????</ul>
</div>

<script>
Vue.component('todo-item',{
????props:['content'],
?template:'<li>{{content}}</li>'
})
new?Vue({
????el:'#root',
?data:{
????????items:[],
?inputValue:''
?},
?methods:{
????????handleSubmit:function?()?{
????????????this.items.push(this.inputValue);
?this.inputValue?=?''
?}
????}
})
</script>
</body>
</html>


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

引入了也會(huì)報(bào)同樣的錯(cuò)誤 我再重新發(fā)一下問(wèn)題吧 我的代碼整理了一下 謝謝

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

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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