安卓用的ifarme方法`var ifr = document.createElement("iframe"); var t1 = new Date().getTime(); document.body.appendChild(ifr);
ifr.setAttribute('style', 'display:none');
ifr.setAttribute('src', 'lewddriver://lsj/opensns?url='+lochref);
setTimeout(function() { document.body.removeChild(ifr);
}, 100);
setTimeout(function() { var t2 = new Date().getTime();
if (t2 - t1 < 400) {
(function() { //若iframe调用失败,尝试下载apk
window.location.href = _this.apkUrl;
})();
}
}, 200);
添加回答
举报
0/150
提交
取消