框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | disableAlertBeforeUnload | 微信安卓客户端 | 7.0.21 | 2.12.2 |
onLoad: function (options) {
wx.disableAlertBeforeUnload({
success(res) {console.log("succes", res);},
fail(res) {console.log("fail", res);},
})
},
华为手机、小米手机测试,均无效
网友回复
社区技术运营专员-Jahozheng:
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
Mr.Zhao:
我的小米能用