Title
hello world
var vm = new Vue({
el:'#app',
data:{
test:'1',
},
template:"
{{test}}
",
beforeCreate:function () {
console.log('beforeCreate')
},
created:function () {
console.log('created')
},
beforeMount:function () {
console.log(this.$el)
console.log('beforeMount')
},
mounted:function () {
console.log(this.$el)
console.log('mounted')
},
beforeDestroy:function () {
console.log('beforeDestroy')
},
destroyed:function () {
console.log('destroyed')
},
beforeUpdate:function () {
console.log('beforeUpdate')
},
updated:function () {
console.log('updated')
}
})
一键复制
编辑
Web IDE
原始数据
按行查看
历史