gqx-html

刷新当前页面共有两点

 

1. 在同js文件刷新

this.onShow()

OR

this.onLoad()

  

2. 在不同js文件刷新 (写公共方法中会遇到)

// 获取所有路由
const pages = getCurrentPages()
// 获得最新路由 const perpage = pages[pages.length - 1]
// 刷新最新路由 / 刷新当前页面 perpage.onShow()

OR
perpage.onLoad()

  

分类:

技术点:

相关文章:

  • 2021-09-18
  • 2021-11-11
  • 2022-01-07
  • 2022-01-07
  • 2021-12-05
  • 2022-01-07
猜你喜欢
  • 2022-02-07
  • 2021-12-03
  • 2021-10-25
  • 2022-01-07
  • 2022-01-07
  • 2021-12-15
相关资源
相似解决方案