vue.js中mounted和created的区别
1 回答

holdtom
TA贡献1805条经验 获得超10个赞
mounted和created的区别:
Vue.extend()中,生命周期mounted好像不同。
var test= Vue.extend({
template: '#test',
data: function() {
return {
msg: 'test'
}
},
mounted: function() {
console.log(1);
}
})
添加回答
举报
0/150
提交
取消