image.png

综合生命周期调研

  1. created() {
  2. console.log(' vue created')
  3. },
  4. beforeMount () {
  5. console.log(' vue beforeMount')
  6. },
  7. mounted () {
  8. console.log(' vue mounted')
  9. },
  10. onLoad () {
  11. console.log('weapp onLoad')
  12. },
  13. onShow () {
  14. console.log('weapp onShow')
  15. },
  16. onReady () {
  17. console.log('weapp onReady')
  18. },
  1. vue created
  2. vue beforeMount
  3. weapp onLoad
  4. weapp onShow
  5. vue mounted
  6. weapp onReady