wx.enableAlertBeforeUnload({
message: "您内容已更新,还没保存,确定要退出吗?",
success: function (res) {
},
fail: function (err) {
console.log("失败:", err);
},
});
wx.disableAlertBeforeUnload()