扫码关注官方订阅号
html5中URL打开手机上的地图APP,能做到吗?比如我手机上装了几个地图APP,提示我自由选择用那个?请高手
光阴似箭催人老,日月如移越少年。
做一个中间页面,比如 redirect.html 然后加入
redirect.html
<script type="text/javascript"> window.location.href = "appleMap://"; setTimeout( function(e){ window.location.href = "gmap://"; },200); setTimeout( function(e){ window.location.href = "bdmap://";....},400); setTimeout( function(e){ window.location.href = "gmap://";},600}; </script>
至于具体的 url 和 during 自己调吧,我以前设置的好像 200 就够用了...
url
during
200
应用的原理就是:如果 url 能打开,则会跳转到相应 app
app
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
做一个中间页面,比如
redirect.html然后加入至于具体的
url和during自己调吧,我以前设置的好像200就够用了...应用的原理就是:如果
url能打开,则会跳转到相应app