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-02-11 16:15:51
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>