生命周期
<script>
export default {
data: {
title: 'Hello'
},
onLoad:function(e){
console.log("onLoad");
},
onHide:function(e){
console.log("onHide");
},
onShow:function(e){
console.log("onShow");
},
onPullDownRefresh :function(e){
console.log('onPullDownRefresh')
},
onReachBottom:function(e){
console.log('onReachBottom')
}
}
</script>
在page.json中配置
{
"path" : "pages/sheng_ming_zhou_qi/sheng_ming_zhou_qi",
"enablePullDownRefresh" : true,
"style" : {}
}