关于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!'
}
})
他们是相等的吗