var u = navigator.userAgent;
if(u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) || (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1)) {
…
}
var u = navigator.userAgent;
if(u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) || (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1)) {
…
}
转载于:https://my.oschina.net/fangyijoe/blog/85286