admin管理员组

文章数量:1606786

安卓用的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 

(function() {                                //若iframe调用失败,尝试下载apk

window.location.href = _this.apkUrl;

})();

}

}, 200);

本文标签: 浏览器机型app