onLoad:function (options) {
//页面初始化
console.log('index Load')
},
onShow:function () {
//页面显示
console.log('index Show')
},
onReady:function () {
//页面渲染完成
console.log('index Ready')
},
onHide:function () {
//页面隐藏
console.log('index Hide')
},
onUnload:function () {
//页面关闭
console.log('index Unload')
}
打印顺序:
index Load
index.js [sm]:14 index Show
index.js [sm]:18 index Ready
index.js [sm]:26 index Unload