關于es6寫法與原生寫法的區別?
export default { ?data () { ? ?return { ? ? ?// note: changing this line won't causes changes ? ? ?// with hot-reload because the reloaded component ? ? ?// preserves its current state and we are modifying ? ? ?// its initial state. ? ? ?msg: 'Hello vue!!' ? ?} ?} } 這個寫是什么意思??
import Vue from 'vue'
new Vue({
? ?el:'#hello',
? ?data:{
? ? ?msg:'hello vue i love you!'
? ?}
})
他們是相等的嗎
2016-09-27
es6也是原生 只是標準不同
第一個是組件寫法?
new Vue 這個實例化#hello;使#hello 繼承vue的方法?
我的理解是這樣
2016-09-11
export default { ?data () { ? ?return { ? ? ?// note: changing this line won't causes changes ? ? ?// with hot-reload because the reloaded component ? ? ?// preserves its current state and we are modifying ? ? ?// its initial state. ? ? ?msg: 'Hello vue!!' ? ?} ?} } 這個寫法是什么意思??
2016-09-11
es6就是原生