我正在嘗試做一些php瀏覽器測試。當我看着
$_SERVER['HTTP_USER_AGENT'
我發現,它返回此:
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
即使我是在IE 11
當我在Chrome,它返回此:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36
哪個更合理。爲什麼IE中沒有MSIE,我該如何定位它?
。它的IE引擎。檢查此http://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx和此http://en.wikipedia.org/wiki/Trident_(layout_engine) – 2014-10-06 16:20:44
http: //en.wikipedia.org/wiki/Comparison_of_web_browser_engines – PeeHaa 2014-10-06 16:21:42