猿问

有些安卓机型百度浏览器h5唤起app失效

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


弑天下
浏览 1981回答 1
1回答

汪汪一只猫

我也遇到了相同的问题,t7内核的百度浏览器启动App失效,求解答
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答