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 = ""; }</script>
时间:2020-04-11 09:00:25
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 = ""; }</script>