【发布时间】:2015-06-22 09:12:33
【问题描述】:
如果应用程序在我的手机中,它会启动它,但如果不是,请下载它。 这是代码:
window.location = 'intent://' + schemeUrl + '#Intent;scheme=' + scheme + ';end';
setTimeout(function() {
self._gotoDownload(startTime);
}, self.openTime);
它在其他浏览器上运行良好,但是在chrome中,如果我的手机没有安装这个应用程序,它会打开一个错误页面。我尝试使用iframe加载'intent...',但仍然没有工作。
【问题讨论】:
-
我的想法是:window.location = 'intent://' + schemeUrl + '#Intent;scheme=' + scheme + ';end'; setTimeout(function() { window.location.href = "www....." }, 3000);
-
有人帮忙解决这个问题吗?
标签: javascript html google-chrome iframe