更新时间:2021-09-08 23:04:34
据我所知,您无法通过浏览器检查应用程序是否已安装.
As far as I know you can not, from a browser, check if an app is installed or not.
但是您可以尝试将手机重定向到应用程序,如果没有任何反应,则将手机重定向到指定页面,如下所示:
But you can try redirecting the phone to the app, and if nothing happens redirect the phone to a specified page, like this:
setTimeout(function () { window.location = "https://itunes.apple.com/appdir"; }, 25);
window.location = "appname://";
如果第二行代码给出结果,则永远不会执行第一行.
If the second line of code gives a result then the first row is never executed.
类似问题: