判断是否手机端

apple 登录
http://www.oschina.net/code/piece_full?code=19659


<script type="text/javascript"> try{ if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){ window.location.href=" http://www.xx.com/ "; } }catch(e){} </script>
posted @ 2017-09-22 19:28  哥,我还要  阅读(170)  评论(0编辑  收藏  举报