uni-app生命周期测试

   onReady () {
    console.log('onReady', this)
  },
  onLoad() {
    console.log('onLoad', this)
  },
   onShow() {
    console.log('onShow', this)
  },
  onUnload() {
    console.log('onUnload', this)
  },
  mounted() {
    console.log('mounted', this)
  },
  onHide() {
    console.log('onHide', this)
  },
  created() {
      console.log('created', this)
  },

你可能感兴趣的:(uni-app)