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?=?'';
????}
??}
}
2018-11-22
vue都沒引入
2018-09-21
寫的對(duì)呀
2018-09-21
寫錯(cuò)了,你這個(gè),這個(gè)是用了手腳架之后寫的吧,你仔細(xì)看看data壓根不是那么寫的