标签:and match 移动端 index androi isa 判断 nav dex
var u = navigator.userAgent;
var isAndroid = u.indexOf(‘Android‘) > -1 || u.indexOf(‘Adr‘) > -1; //android终端
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if(isAndroid || isiOS){
}
标签:and match 移动端 index androi isa 判断 nav dex
原文地址:http://www.cnblogs.com/hehuiself/p/7126936.html