html5中URL打开手机上的地图APP,切图项目中遇到的,亲测有用。
做一个中间页面,比如 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 能打开,则会跳转到相应 app
文章为原创或者来自于互联网,转载请注明来源,如果文章有侵权请联系,我们会及时删除。
发布时间:2022年08月27日 标签:echarts
UEditor是国内比较主流的编辑插件,是百度出品,不得不说百度虽然也做过很多产品最后放弃,不过ueditor […]