function getCPU() {
var agent=navigator.userAgent.toLowerCase();
/* console.log(agent);*/
if(agent.indexOf("win64") =='-1'){
return -1; //不是windows系统
}
if(agent.indexOf("win64")>=0||agent.indexOf("wow64")>=0) return "x64";
return navigator.cpuClass;
}
网友评论