- 實例化vue時,需要傳入一個選項對象,它可以包含:eg
var vm = new Vue({
el:''//掛載元素
data:{}//數(shù)據(jù)對象
methods:{//方法
sayName:function(){}
}
components:{}//模板
filters:{//自定義過濾器
happy:funcition(){}
}
})
后續(xù)。。。。
var vm = new Vue({
el:''//掛載元素
data:{}//數(shù)據(jù)對象
methods:{//方法
sayName:function(){}
}
components:{}//模板
filters:{//自定義過濾器
happy:funcition(){}
}
})
后續(xù)。。。。