当前位置:网站首页>Wechat applet closes the current page

Wechat applet closes the current page

2022-06-10 14:43:00 yechaoa

wx.navigateBack(Object object)

Close current page , Go back to the previous page or multi-level page .

wx.navigateBack({
  delta: 1
})

Receive a parameter delta, That is, the number of pages returned , The default is 1, Return to the previous page , So you can also omit

wx.navigateBack({})

wx.redirectTo(Object object)

Close current page , Jump to a page in the app . But you are not allowed to jump to tabbar page .

   wx.redirectTo({
      url: '../index/index'
   })

Wechat applet Return to the previous page and pass the reference

原网站

版权声明
本文为[yechaoa]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101411129269.html