1***@qq.com
1***@qq.com
  • 发布:2019-01-09 18:17
  • 更新:2019-01-14 16:14
  • 阅读:1404

APP页面跳转问题

分类:5+ SDK

各位大神,我在做项目的时候遇到一个问题就是从我做的APP内通过http地址跳转到别的APP或浏览器后,按手机返回键返回回来后程序直接退出,需要重新进入。这个怎么解决啊?
function scaned(t, r, f){
var firstStr = r.substr(0,4);
if(firstStr == "http" || firstStr == "HTTP"){//扫码返回的如果是地址,则跳转
if(r.substr(10,6)=="wechat"){
mui.toast("请用微信扫码!");
}else{
window.location.href = r;
}
}else if(firstStr == "wxp:"){
mui.toast("请用微信扫码!");
}else{

        }  

}

2019-01-09 18:17 负责人:无 分享
已邀请:
7***@qq.com

7***@qq.com

重写返回事件

该问题目前已经被锁定, 无法添加新回复