var mobilecheck = function() { if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i) || navigator.userAgent.match(/MQQBrowser/i) ){ return true; } else { return false; } }
JS判断是否为移动端
上次更新时间 : 2015-10-23 17:53
暂无评论