有什么方法可以实用地检测Internet Explorer 11企业模式?

实用的意思是在服务器端使用csharp或javascript / jquery。

跟随线程仍未定论

IE 11 - Is there a way to check then enable / disable enterprise mode?

最佳答案

您可以验证用户代理字符串
使用Javascript获取用户代理字符串:navigator.userAgent;

对于台式机上的IE11企业模式,用户代理字符串为

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Tablet PC 2.0)


请参阅https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx

07-24 21:24