0
点赞
收藏
分享

微信扫一扫

js判断网页在手机端跳转到移动页面,script怎么写跳转移动端

js判断网页在手机端跳转到移动页面,script怎么写跳转移动端

js案例:

<script>if(/Android|webOS|iPhone|Windows Phone|iPod|BlackBerry|SymbianOS/i.test(window.navigator.userAgent) && !window.location.hash.match("fromapp")){ window.location.href = "http://www.7iwan.com"; }</script>

举报

相关推荐

js判断移动端设置方法

0 条评论