javascript中navigator.userAgent里的window NT
今天為了嘗試查看網址的來源document.referrer,但是不知道每個瀏覽器的版本號,然后我就用navigator.userAgent來獲取當前瀏覽器的版本號,出了一大串字符串,根據代碼測試結果:
代碼:
alert('來源是:'+document.referrer + '\nUA是:' + navigator.userAgent);
1
這是ie6瀏覽器的輸出:
這是Internet Explorer 11上的輸出:
這是360瀏覽器上的輸出:
4.這是Microsoft Edge上的輸出:
他們上面都存在windows NT 10.0,最后,查了一下,才知道,widnows NT 10到底是毛意思啊。
Microsoft Windows NT是微軟發布的操作系統,NT 就是 new technology的意思,我們通常叫windows NT 位ie的內核,注意,不是發行版本(向win10,win7的叫法),每個發行版本對應一個ie內核, 以上的windows NT10.0就是ie的內核版本,
微軟成立的20年間已推出21個Windows NT操作系統。每個操作系統如下所示:
NT 版本 市場名稱 版本 發行日期 RTM Build
NT 3.1 Windows NT 3.1 Workstation(僅被命名為“Windows NT”), Advanced Server 1993年7月27日 528
NT 3.5 Windows NT 3.5 Workstation, Advanced Server 1994年9月5日 807
NT 3.51 Windows NT 3.51 Workstation, Server 1995年5月30日 1057
NT 4.0 Windows NT 4.0 Workstation, Server, Server Enterprise Edition,
Terminal Server, Embedded 1996年7月29日 1381
NT 5.0 Windows 2000 Professional, Server, Advanced Server, DataCenter Server 2000年2月17日 2195
NT 5.1 Windows XP Home, Professional, Media Center, Tablet PC, Starter, Embedded, N 2001年10月15日 2600
NT5.2 Windows XP 64-bit Edition Version 2003 (此專為AMD64而開發), Professional x64 Edition
IA64: 2003年3月28日
x64: 2005年4月25日
3790
Windows Server 2003 Standard, Enterprise, DataCenter, Web, Small Business Server 2003年4月24日
Windows Server 2003 R2 Standard, Enterprise, DataCenter, Web, Small Business Server 2005年12月6日
NT6.0 Windows Vista Starter, Home Basic, Home Premium, Professional, Enterprise, Ultimate 2007年1月30日
6000 (RTM)
6001 (SP1)
6002 (SP2)
Windows Server 2008 Foundation, Standard, Enterprise, Datacenter, Web Server, HPC Server, Itanium-Based Systems 2008年8月27日
6001 (RTM)
6002 (SP2)
NT6.1 Windows 7 Starter, Home Basic, Home Premium, Professional, Enterprise, Ultimate 2009年10月22日
7600 (RTM)
7601 (SP1)
Windows Server 2008 R2 Foundation, Standard, Enterprise, Datacenter, Web Server, HPC Server, Itanium-Based Systems 2009年10月22日
7600 (RTM)
7601 (SP1)
NT6.2 Windows 8 Windows 8, Windows 8 Pro, Windows 8 Enterprise, Windows RT 2012年10月26日 9200
Windows Phone 8 不適用 2012年10月30日 9900
Windows Server 2012 Foundation, Essentials, Standard, Datacenter 2012年9月4日 9200
NT6.3 Windows 8.1 Windows 8.1, Windows 8.1 Pro, Windows 8.1 Enterprise, Windows RT 8.1 2013年10月18日 9600
Windows Phone 8.1 不適用 2014年4月2日 不適用
Windows Server 2012 R2 Essentials, Standard, Datacenter 2013年10月18日 9600
NT6.4 Windows 10 Technical Preview (v.6.4.9841) 2014年10月1日 9841
Technical Preview (v.6.4.9860) 2014年10月21日 9860
Technical Preview (v.6.4.9879) 2014年11月13日 9879
NT 10.0
Windows 10
Technical Preview (v.10.0.9888)
2014年12月14日
9888
Technical Preview (v.10.0.9926)
2015年1月24日 9926
Technical Preview (v.10.0.10041) 2015年3月19日 10041
Insider Preview (v.10.0.10074) 2015年4月30日 10074
Insider Preview (v.10.0.10158) 2015年6月30日 10158
Insider Preview (v.10.0.10159) 2015年7月1日 10159
Insider Preview (v.10.0.10162) 2015年7月3日 10162
Windows10家庭版,Windows10專業版,Windows10企業版,和Windows10教育版 2015年7月29日 10240
Insider Preview (v.10.0.10586) 2015年10月13日 10586