标签:bsp use gen 手机 agent isa san 判断 cpu
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终端
标签:bsp use gen 手机 agent isa san 判断 cpu
原文地址:http://www.cnblogs.com/xulei1992/p/6529780.html