close(){
//判断环境
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") {//微信
WeixinJSBridge.invoke('closeWindow');
return
}
if (ua.match(/AlipayClient/i) == "alipayclient") {//支付宝
window.AlipayJSBridge.call('closeWebview');
return
}
window.close
}
点击按钮关闭内置浏览器页面,微信/支付宝
最新推荐文章于 2024-09-05 11:28:13 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)