判断手机系统类型
2017-12-02 16:30
183 查看
var u = navigator.userAgent; if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {//安卓手机 alert("安卓手机"); // window.location.href = "mobile/index.html"; } else if (u.indexOf('iPhone') > -1) {//苹果手机 // window.location.href = "mobile/index.html"; alert("苹果手机"); } else if (u.indexOf('Windows Phone') > -1) {//winphone手机 alert("winphone手机"); // window.location.href = "mobile/index.html"; }
相关文章推荐
- JS判断手机当前的系统类型
- js 判断当前的手机系统类型
- js 判断当前的手机系统类型
- js 判断当前的手机系统类型
- js 判断当前的手机系统类型
- js 判断当前的手机系统类型
- 判断手机系统类型以及判断是否在微信环境
- js 判断当前的手机系统类型
- js 判断当前的手机系统类型
- js 判断当前手机系统类型
- js 判断当前的手机系统类型
- JSP中实现判断客户端手机类型并跳转到app下载页面
- js判断手机连接网络类型
- 判断浏览器类型,区分手机和PC
- Android判断手机是否是小米MIUI系统
- JS判断客户端系统 让ipad iphone 等手持设备自动跳到手机版
- JS判断当前手机类型
- 手机终端系统判断
- javascript判断浏览器和终端类型,js如何区分手机、电脑终端和浏览器
- android获取屏幕尺寸、密度(判断手机屏幕类型)