vue页面在微信中,点击取消按钮退出当前页面,兼容苹果和安卓
onCancel() {setTimeout(function() {document.addEventListener('WeixinJSBridgeReady',function() {this.WeixinJSBridge.call('closeWindow')},false)this.WeixinJSBridge.call('closeWindow')}, 300)window.opener = nullwindow.open('about:blank', '_top').close()},
如果觉得《vue页面在微信中 点击取消按钮退出当前页面》对你有帮助,请点赞、收藏,并留下你的观点哦!