<script type="text/javascript">
var mobileAgent = new Array("iphone", "ipod", "ipad", "android", "mobile", "blackberry", "webos", "incognito", "webmate", "bada", "nokia", "lg", "ucweb", "skyfire");
var browser = navigator.userAgent.toLowerCase();
var isMobile = false;
for (var i = 0; i < mobileAgent.length; i++) {
if (browser.indexOf(mobileAgent[i]) != -1) {
isMobile = true;
//alert(mobileAgent[i]);
location.href = '填入手机站地址';
break;
}
}
</script>
js判断设备自动跳转,判断手机端跳转
最新推荐文章于 2022-03-16 16:22:42 发布