综合生命周期调研
created() {
console.log(' vue created')
},
beforeMount () {
console.log(' vue beforeMount')
},
mounted () {
console.log(' vue mounted')
},
onLoad () {
console.log('weapp onLoad')
},
onShow () {
console.log('weapp onShow')
},
onReady () {
console.log('weapp onReady')
},
vue created
vue beforeMount
weapp onLoad
weapp onShow
vue mounted
weapp onReady