-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
32位64位浏览器识别 #54
Comments
有没有其他参考资料?链接什么的 |
for Windows
function getCPU()
{
var agent=navigator.userAgent.toLowerCase();
if(agent.indexOf("win64")>=0||agent.indexOf("wow64")>=0) return "x64";
return navigator.cpuClass;
}
function getCPU()
{
var shell = new ActiveXObject( "Wscript.Shell");
var value= shell.RegRead ("HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\\PROCESSOR_ARCHITECTURE");
value=value.toLowerCase();
if(value.indexOf("64")>=0) return "x64";//amd64 ia64
return "x86";
}
for Mac
Apple Menu - About This Mac:
for Linux (NOT for JavaScript)
Others |
操作系统和浏览器的位数信息,可能对于大部分 Web 开发来说并不常用,这个功能是否需要整合到 detector 中还需要讨论。 @shaoshuai0102 建议你先参考上面的资料,针对业务需求先自行实现。 |
好 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wow64 - 32位浏览器,跑在64位系统上
x64或win64或都有 - 64位浏览器
The text was updated successfully, but these errors were encountered: