init
This commit is contained in:
26
xhs-mini-demos/component-case/lifecycle/lifecycle.js
Normal file
26
xhs-mini-demos/component-case/lifecycle/lifecycle.js
Normal file
@@ -0,0 +1,26 @@
|
||||
Page({
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: 'lifecycle',
|
||||
path: 'packageAPI/pages/lifecycle/lifecycle',
|
||||
};
|
||||
},
|
||||
data: {
|
||||
load: false,
|
||||
show: false,
|
||||
hide: false,
|
||||
unload: false,
|
||||
},
|
||||
onLoad() {
|
||||
xhs.showToast({ title: 'pageOnLoad' });
|
||||
},
|
||||
onShow() {
|
||||
xhs.showToast({ title: 'pageOnShow' });
|
||||
},
|
||||
onHide() {
|
||||
xhs.showToast({ title: 'pageOnHide' });
|
||||
},
|
||||
onUnload() {
|
||||
xhs.showToast({ title: 'pageOnUnload' });
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user