<script type="text/javascript">
function browserRedirect() {
var sUserAgent = navigator.userAgent.toLowerCase();
if (/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(sUserAgent)) {
//跳转移动端页面
window.location.href="" rel="external nofollow" rel="external nofollow" ;
} else {
//跳转pc端页面
window.location.href="" rel="external nofollow" rel="external nofollow" ;
}
}
browserRedirect();
</script>
判断是移动端还是pc端打开页面
最新推荐文章于 2022-03-03 15:18:31 发布