let pages = getCurrentPages();
let beforePage = pages[pages.length - 2];
wx.navigateBack({
delta: 1,
success: function() {
if (beforePage.route == ‘xxxxxxxxxxxxxxxxxxx’) {
beforePage.GetPageData(json)
}
})

注释:xxxxxxx的位置就是你返回的路由路径。
beforePage调用的就是上一个页面里面的方法,json就是你需要传递过去的参数。

关注我更多干货分享
书山有路勤为径,学海无涯苦做舟小程序返回上一个页面,如何带参数并刷新列表

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2021-12-05
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2021-10-31
  • 2021-07-15
  • 2021-12-05
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案