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-09-18
2018-09-18
引入了也會(huì)報(bào)同樣的錯(cuò)誤 我再重新發(fā)一下問(wèn)題吧 我的代碼整理了一下 謝謝