微信小程序开发 如何退出当前页面

默认是在首页

wx.navigateBack({
    delta: -1
});
 
 
详情参考。
https://mp.weixin.qq.com/debug/wxadoc/dev/api/ui-navigate.html#wxrelaunchobject

wx.navigateBack(OBJECT)

 
原文地址:https://www.cnblogs.com/MainActivity/p/8594942.html