//判断手机端移动端
var arr = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
var str = navigator.userAgent;
for(var i = 0;i<arr.length;i++){
if(str.indexOf(arr[i])){
location.href = "";//跳转地址(跳转到手机页面)
}
}
判断手机端移动端
最新推荐文章于 2021-09-14 16:20:25 发布