创建-运行-销毁
<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
},
onError: function(error) {
console.log('error: ', error)
}
}
</script>
onLoad() {
console.log('页面加载了')
},
onShow() {
console.log('页面显示了')
},
onReady() {
console.log('页面初次渲染')
},
onHide() {
console.log('页面隐藏了')
},
onUnload() {
console.log('页面卸载了')
}