Commit 36e08236 authored by anle's avatar anle

更改

parent 4a64b244
node_modules
...@@ -47,13 +47,12 @@ function tiaozhuan(nativeUrl) { ...@@ -47,13 +47,12 @@ function tiaozhuan(nativeUrl) {
doc = window.document, doc = window.document,
ifr = doc.createElement("iframe"); ifr = doc.createElement("iframe");
window.location.href = nativeUrl;
//创建一个隐藏的iframe //创建一个隐藏的iframe
ifr.src = nativeUrl; ifr.src = nativeUrl;
ifr.style.cssText = "display:none;border:0;width:0;height:0;"; ifr.style.cssText = "display:none;border:0;width:0;height:0;";
doc.body.appendChild(ifr); doc.body.appendChild(ifr);
window.location.href = nativeUrl;
setTimeout(function () { setTimeout(function () {
doc.body.removeChild(ifr); doc.body.removeChild(ifr);
window.location.href = "weixin://"; window.location.href = "weixin://";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment