[英]Edge in Windows 10 S user agent string? Any other way to programmatically detect Windows 10 S?
Is there a way to know if the user is using Windows 10 S? 有没有办法知道用户是否使用Windows 10 S? Typically one would use the user-agent string to detect operating system and browser, but I do not believe that Edge on Windows 10 S will have a user-agent string any different from Edge on Windows 10 Home or Pro. 通常会使用用户代理字符串来检测操作系统和浏览器,但我不认为Windows 10 S上的Edge将具有与Windows 10 Home或Pro上的Edge不同的用户代理字符串。
Is there any other way to programmatically detect Windows 10 S from within the browser? 有没有其他方法可以从浏览器中以编程方式检测Windows 10 S?
To detect the operating system on the client machine, your script can analyze the value of two things: 要检测客户端计算机上的操作系统,您的脚本可以分析两件事的值:
As we can see in Microsoft document that released on 12/15/2016 ( User-agent string changes for Microsoft Edge ), the Windows NT token's value changes from 6.3 to 10.0 in the EdgeHTML
engine and after that Windows 10 S was released on May 2, 2017 that Microsoft didn't mention any changes in navigator.userAgent
or navigator.appVersion
. 正如我们在2016年12月15日发布的Microsoft文档中所看到的( Microsoft Edge的用户代理字符串更改 ),Windows NT令牌的值在EdgeHTML
引擎中从6.3更改为10.0,之后Windows 10 S在5月发布2017年2月,微软没有在navigator.userAgent
或navigator.appVersion
提及任何变化。
So, Edge on Windows 10 S is no different than Edge on Windows 10 Home or Pro in both of two things above. 因此,Windows 10 S上的Edge与Windows 10 Home或Pro上的Edge在上述两个方面都没有区别 。
Another things that I should to say is: 我应该说的另一件事是:
userAgent
is not reliable.userAgent
不可靠。
New browsers may start using the same UA, or part of it, as an older browser: you really have no guarantee that the browser agent is indeed the one advertised by this property. 新浏览器可能会开始使用相同的UA或部分UA作为较旧的浏览器:您实际上无法保证浏览器代理确实是此属性所宣传的代理。 ( more information ) ( 更多信息 )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.