uniapp刷新小程序页面

1,210 阅读1分钟
  • 在uniapp开发小程序中在 methods 里边写方法所以直接调用,this.onshow() 是没办法的
  • 在uniapp中有 getCurrentPages() 这个方法,用于获取当前页面栈的实例
 console.log(getCurrentPages())
 
 //getCurrentPages().pop().onShow() 这样可以直接调用 onshow()