-
創(chuàng)建局部組件:
查看全部 -
創(chuàng)建全局組件的方法:
查看全部 -
組件拆分
<ul> ????<todo-item ????????v-for="(item,?index)?of?list" ????????:key="index" ????????:content="item" ????> ????</todo-item> ?</div> ? ?<script> ?????Vue.component('todo-item',{ ?????props:?['content'], ?????template:?'<li>{{content}}</li>' ?????}) ?</script>
查看全部 -
v-bind: ?===> : ? 單向綁定
v-model ?雙向綁定
查看全部 -
v-on: ?====> @
查看全部 -
老師我安裝vue-cli npm install vue-cli -g然后一直
npm?WARN?deprecated?coffee-script@1.12.7:?CoffeeScript?on?NPM?has?moved?to?"coffeescript"?(no?hyphen)
? 他已經(jīng)顯示版本號(hào)了 但是運(yùn)行ue?init?webpack demo 就顯示vue不是內(nèi)部命令
查看全部 -
v-for="(item,index) of list":key="index"<br />查看全部
-
v-for可以用作頁(yè)面上循環(huán)內(nèi)容的展示
加一個(gè)key值,可以提升渲染的速率
查看全部 -
v-if會(huì)直接將這個(gè)元素移除, v-show并不會(huì)將標(biāo)簽移除,只是將標(biāo)簽的屬性變?yōu)閚one,用v-show不會(huì)頻繁的創(chuàng)建和銷(xiāo)毀,性能會(huì)更高
查看全部 -
watch監(jiān)聽(tīng)器
查看全部 -
computed計(jì)算屬性
查看全部 -
v-modle改變數(shù)據(jù)中的值查看全部
-
v-on=@點(diǎn)擊一下變
查看全部 -
:=v-bind:鼠標(biāo)放上去變
查看全部
舉報(bào)