同文件刷新
this.onShow() 或者 this.onLoad()
不同js刷新(封裝的登錄等)
// 獲取所有路由
const pages = getCurrentPages()// 獲得最新路由
const perpage = pages[pages.length - 1]// 刷新最新路由 / 刷新當前頁面
perpage.onShow() 或者 perpage.onLoad()
同文件刷新
this.onShow() 或者 this.onLoad()
不同js刷新(封裝的登錄等)
// 獲取所有路由
const pages = getCurrentPages()// 獲得最新路由
const perpage = pages[pages.length - 1]// 刷新最新路由 / 刷新當前頁面
perpage.onShow() 或者 perpage.onLoad()