<br />
<b>Warning</b>:  Undefined array key "HTTP_ACCEPT_LANGUAGE" in <b>/www/wwwroot/01xj.net/wp-content/plugins/wp-ue/main.php</b> on line <b>13</b><br />
{"id":485,"date":"2014-05-25T08:42:27","date_gmt":"2014-05-25T00:42:27","guid":{"rendered":"http:\/\/www.01xj.net\/?p=485"},"modified":"2014-05-25T08:42:27","modified_gmt":"2014-05-25T00:42:27","slug":"user-agent%e6%a3%80%e6%b5%8b%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.01xj.net\/?p=485","title":{"rendered":"user-agent\u68c0\u6d4b\u8be6\u89e3"},"content":{"rendered":"<h2><span style=\"color: #464646;\">\u7279\u6027\u68c0\u6d4b\u5e76\u975e\u6d4f\u89c8\u5668\u68c0\u6d4b<\/span><\/h2>\n<h3><span style=\"color: #464646;\">\u4e00\u3001\u6d4f\u89c8\u5668\u4eec\u7684\u5bb6\u65cf\u53f2<\/span><\/h3>\n<div>\n<h4><span style=\"color: #464646;\">\u8f83\u53e4\u7684\u6d4f\u89c8\u5668<\/span><\/h4>\n<p><span style=\"color: #464646;\">1993\u5e74\uff0cNCSA \u53d1\u5e03\u4e86\u9996\u6b3e web \u6d4f\u89c8\u5668 Mosaic\u3002\u5b83\u7684 user-agent \u5b57\u4e32\u975e\u5e38\u7b80\u6d01\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mosaic\/0.9<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u867d\u7136\u5f53\u65f6\u7531\u4e8e\u5b83\u5bf9\u64cd\u4f5c\u7cfb\u7edf\u548c\u5e73\u53f0\u7684\u4f9d\u8d56\u6027\uff0c\u4f46\u662f\u57fa\u672c\u683c\u5f0f\u8fd8\u662f\u5f88\u7b80\u5355\u660e\u4e86\u3002\u5728\u6587\u672c\u4e2d\uff0c\u659c\u6760\u524d\u9762\u662f\u4ea7\u54c1\u540d\u79f0(\u53ef\u80fd\u4f1a\u663e\u793a\u4e3a NCSA Mosaic \u6216\u662f\u5176\u4ed6\u7c7b\u4f3c\u7684\u5b57)\uff0c\u659c\u6760\u540e\u9762\u662f\u4ea7\u54c1\u7248\u672c\u53f7\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">Netscape Communications \u5f00\u53d1\u4e86 web \u6d4f\u89c8\u5668 Mozilla(\u5f53\u65f6\u53f7\u79f0\u201cMosaic \u6740\u624b\u201d)\u3002\u4ed6\u4eec\u9996\u6b3e\u516c\u5f00\u53d1\u884c\u7248\u672c\uff1a Netscape Navigator 2 \u7684user-agent \u5b57\u4e32\u5177\u6709\u5982\u4e0b\u683c\u5f0f\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/Version [Language] (Platform; Encryption)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">Netscape \u6309\u4e4b\u524d\u7684\u505a\u6cd5\u5728 user-agent \u5b57\u4e32\u7684\u524d\u534a\u90e8\u5206\u4f7f\u7528\u4e86\u4ea7\u54c1\u540d\u79f0\u548c\u4ea7\u54c1\u7248\u672c\uff0c\u4f46\u5728\u540e\u9762\u589e\u52a0\u4e86\u4e0b\u5217\u4fe1\u606f\uff1a<\/span><\/p>\n<ol>\n<li><span style=\"color: #464646;\">Language &#8211; \u8868\u793a\u5e94\u7528\u7a0b\u5e8f\u7528\u7684\u662f\u54ea\u4e2a\u8bed\u8a00<\/span><\/li>\n<li><span style=\"color: #464646;\">Platform &#8211; \u8868\u793a\u5e94\u7528\u7a0b\u5e8f\u662f\u5728\u4ec0\u4e48\u64cd\u4f5c\u7cfb\u7edf\u548c\/\u6216\u5e73\u53f0\u4e2d\u8fd0\u884c<\/span><\/li>\n<li><span style=\"color: #464646;\">Encryption &#8211; \u8868\u793a\u5e94\u7528\u7a0b\u5e8f\u5305\u542b\u4e86\u4ec0\u4e48\u5b89\u5168\u52a0\u5bc6\u7c7b\u578b\u3002\u5176\u4e2d\u7684\u503c\u53ef\u80fd\u662fU(128\u4f4d\u52a0\u5bc6)\u3001I(40\u4f4d\u52a0\u5bc6)\u3001N(\u6ca1\u52a0\u5bc6)\u3002<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #464646;\">Netscape Navigator 2 \u7684 user-agent \u5b57\u4e32\u7684\u793a\u4f8b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/2.02 [fr] (WinNT; I)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u4e0a\u9762\u7684\u5b57\u4e32\u6307\uff1a Netscape Navigator 2.02 \u3001\u6cd5\u8bed \u3001Windows NT \u300140\u4f4d\u52a0\u5bc6\u3002\u5728\u5f53\u65f6\uff0c\u901a\u8fc7 user-agent \u5b57\u4e32\u4e2d\u7684\u4ea7\u54c1\u540d\u79f0\uff0c\u53ef\u4ee5\u6b63\u786e\u5224\u65ad\u4f7f\u7528\u7684\u662f\u54ea\u4e2a web \u6d4f\u89c8\u5668\u3002<\/span><\/p>\n<h3><span style=\"color: #464646;\">Netscape Navigator 3 \u3001Internet Explorer 3<\/span><\/h3>\n<p><span style=\"color: #464646;\">1996\u5e74\uff0cNetscape Navigator 3 \u53d1\u5e03\uff0c\u5b83\u8fdc\u8fdc\u8d85\u8fc7 Mosaic \u6210\u4e3a\u5f53\u65f6\u6700\u6d41\u884c\u7684 web \u6d4f\u89c8\u5668\u3002\u800c user-agent \u5b57\u4e32\u53ea\u6709\u4e9b\u5c0f\u7684\u53d8\u5316\uff1a\u53bb\u6389\u4e86\u8bed\u8a00\u90e8\u5206\uff0c\u591a\u4e86\u4e2a\u653e\u64cd\u4f5c\u7cfb\u7edf\u6216CPU\u7684\u53ef\u9009\u4fe1\u606f\u3002\u683c\u5f0f\u5982\u4e0b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/Version (Platform; Encryption [; OS-or-CPU description])<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5728 Windows \u7cfb\u7edf\u4e2d Netscape Navigator 3 \u7684 user-agent \u5b57\u4e32\u7684\u793a\u4f8b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/3.0 (Win95; U)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u4e0a\u9762\u7684\u5b57\u4e32\u6307\uff1aNetscape Navigator 3 \u3001Windows 95 \u3001128 \u4f4d\u52a0\u5bc6\u3002\u5728 Windows \u7cfb\u7edf\u4e2d\uff0c\u5b57\u4e32\u91cc\u9762\u4e0d\u4f1a\u663e\u793a OS \u6216 CPU \u7684\u4fe1\u606f\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">Netscape Navigator 3 \u53d1\u5e03\u4e0d\u4e45\uff0c\u5fae\u8f6f\u516c\u5e03\u4e86\u5b83\u7684\u9996\u6b3e web \u6d4f\u89c8\u5668\uff1a IE 3\u00a0<sup>\u00b9<\/sup>\uff0c\u4f46\u662f Netscape \u662f\u5f53\u65f6\u9996\u9009\u6d4f\u89c8\u5668\uff0c\u5927\u591a\u6570\u670d\u52a1\u5668\u5728\u52a0\u8f7d\u9875\u9762\u524d\u90fd\u4f1a\u68c0\u67e5 user-agent \u662f\u5426\u4e3a\u8be5\u6b3e\u6d4f\u89c8\u5668\u3002IE \u5982\u679c\u4e0d\u517c\u5bb9Netscape user-agent \u5b57\u4e32\uff0c\u4f7f\u7528 IE \u7684\u7528\u6237\u5c31\u6839\u672c\u6253\u4e0d\u5f00\u8fd9\u4e9b\u9875\u9762\uff0c\u4e8e\u662f\u9020\u5c31\u4e86\u5982\u4e0b\u683c\u5f0f\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/2.0 (compatible; MSIE Version; Operating System)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5728 Windows 95 \u4e2d IE 3.02 \u7684 user-agent \u5b57\u4e32\u7684\u793a\u4f8b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/2.0 (compatible; MSIE 3.02; Windows 95)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u7531\u4e8e\u5f53\u65f6\u7684\u6d4f\u89c8\u5668\u55c5\u63a2\u53ea\u67e5 user-agent \u5b57\u4e32\u4e2d\u7684\u4ea7\u54c1\u540d\u79f0\u90e8\u5206\uff0c\u7ed3\u679c IE \u6447\u8eab\u4e00\u53d8\u88ab\u8bc6\u522b\u6210\u4e86 Mozilla\uff0c\u4f2a\u88c5\u6210 Netscape Navigator\u3002\u8fd9\u4e2a\u505a\u6cd5\u5f15\u53d1\u4e86\u5bf9\u6d4f\u89c8\u5668\u8bc6\u522b\u7684\u4e89\u8bba\u3002\u4ece\u6b64\u4ee5\u540e\uff0c\u6d4f\u89c8\u5668\u771f\u6b63\u7684\u7248\u672c\u57cb\u6ca1\u5728\u4e86\u5b57\u4e32\u7684\u4e2d\u95f4\u3002<\/span><\/p>\n<h3><span style=\"color: #464646;\">Netscape Communicator 4 \u3001Internet Explorer 4\u81f38<\/span><\/h3>\n<p><span style=\"color: #464646;\">1997 \u5e748\u6708\uff0cNetscape Communicator 4 \u53d1\u5e03(\u53d1\u5e03\u7684\u540d\u79f0\u4e2d Navigator \u6362\u6210\u4e86 Communicator)\uff0c\u5b83\u7684 user-agent \u5b57\u4e32\u683c\u5f0f\u4e0e 3 \u7248\u672c\u4e00\u81f4\u3002Windows 98 \u4e2d 4 \u7248\u672c\u7684 user-agent \u5b57\u4e32\u5982\u4e0b:<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/4.0 (Win98; I)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">Netscape \u6d4f\u89c8\u5668\u5728\u66f4\u65b0\u65f6\uff0c\u7248\u672c\u4e5f\u76f8\u5e94\u589e\u52a0\u30024.79 \u7248\u672c\u7684 user-agent \u5b57\u4e32\u5982\u4e0b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/4.79 (Win98; I)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5fae\u8f6f\u53d1\u5e03 IE 4 \u65f6\uff0cuser-agent \u5b57\u4e32\u66f4\u65b0\u4e86\u7248\u672c\uff0c\u683c\u5f0f\u5982\u4e0b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/4.0 (compatible; MSIE Version; Operating System)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5728 Windows 98 \u4e2d IE 4 \u7684 user-agent \u5b57\u4e32\u7684\u793a\u4f8b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/4.0 (compatible; MSIE 4.0; Windows 98)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u53ef\u4ee5\u770b\u51fa\uff0cMozilla \u7684\u7248\u672c\u4e0e IE \u5b9e\u9645\u7684\u7248\u672c\u4e00\u81f4\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u8bc6\u522b\u7b2c4\u4ee3\u6d4f\u89c8\u5668\u4e86\u3002\u4f46\u9057\u61be\u7684\u662f\uff0c\u4e0d\u4e45 IE 4.5 \u9a6c\u4e0a\u5c31\u53d1\u5e03\u4e86(\u53ea\u5728 Mac \u5e73\u53f0)\uff0c\u867d\u7136 Mozilla \u7248\u672c\u4ecd\u662f 4\uff0c\u4f46\u662f IE \u7684\u7248\u672c\u6539\u6210\u5982\u4e0b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/4.0 (compatible; MSIE 4.5; Mac_PowerPC)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u6b64\u540e\uff0cIE \u7684\u7248\u672c\u4e00\u76f4\u5230 7 \u90fd\u6cbf\u7528\u4e86\u8fd9\u4e2a\u6a21\u5f0f\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u800c IE 8 \u7684\u00a0<a href=\"http:\/\/blogs.msdn.com\/ie\/archive\/2009\/01\/09\/the-internet-explorer-8-user-agent-string-updated-edition.aspx\">user-agent \u5b57\u4e32<\/a>\u6dfb\u52a0\u4e86\u5448\u73b0\u5f15\u64ce(rendering engine)\u7248\u672c\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident\/4.0)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u65b0\u589e\u7684\u5448\u73b0\u5f15\u64ce\u975e\u5e38\u91cd\u8981\uff01\u8fd9\u6837 IE8 \u4ee5 MSIE 7.0 \u517c\u5bb9\u6a21\u5f0f\u8fd0\u884c\u65f6\uff0cTrident \u7248\u672c\u4fdd\u6301\u4e0d\u53d8\uff0c\u800c\u539f\u5148 IE7 \u7684 user-agent \u5b57\u4e32\u4e0d\u5305\u62ec Trident \u7248\u672c\u3002\u8fd9\u6837\u53ef\u4ee5\u533a\u5206 IE7 \u4e0e IE8 \u8fd0\u884c\u7684\u517c\u5bb9\u6a21\u5f0f\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u6ce8\u610f\uff1a\u522b\u6307\u671b\u80fd\u4ece Mozilla \u7248\u672c\u4e2d\u5f97\u5230\u4ec0\u4e48\u9760\u8c31\u7684\u4fe1\u606f\u3002<\/span><\/p>\n<h3><span style=\"color: #464646;\">Gecko<\/span><\/h3>\n<p><span style=\"color: #464646;\">Gecko \u662f Firefox \u7684\u5448\u73b0\u5f15\u64ce\u3002Gecko \u9996\u6b21\u5f00\u53d1\u662f\u4f5c\u4e3a Mozilla \u6d4f\u89c8\u5668 Netscape 6 \u7684\u4e00\u90e8\u5206\u3002Netscape 6 \u7684 user-agent \u5b57\u4e32\u7684\u7ed3\u6784\u662f\u9762\u5411\u672a\u6765\u7684\uff0c\u65b0\u7248\u672c\u53cd\u5e94\u51fa\u4ece 4.x \u7248\u672c\u7684\u7b80\u5355\u53d8\u5f97\u8f83\u4e3a\u590d\u6742\uff0c\u5b83\u7684\u683c\u5f0f\u5982\u4e0b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/MozillaVersion (Platform; Encryption; OS-or-CPU; Language; PrereleaseVersion)Gecko\/GeckoVersion ApplicationProduct\/ApplicationProductVersio<wbr \/>n<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u4e3a\u4e86\u66f4\u597d\u7684\u7406\u89e3\u4e0a\u9762\u7684 Gecko user-agent \u5b57\u4e32\u683c\u5f0f\uff0c\u4e0b\u9762\u6765\u770b\u770b\u5404\u79cd\u4ece\u57fa\u4e8e Gecko \u6d4f\u89c8\u5668\u4e2d\u53d6\u5f97\u7684\u5b57\u4e32\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u5728 Windows XP \u4e2d\u7684 Netscape 6.21\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4) Gecko\/20011128 Netscape6\/6.2.1<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5728 Linux \u4e2d\u7684 SeaMonkey 1.1a:<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b2) Gecko\/20060823 SeaMonkey\/1.1a<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5728 Windows XP \u4e2d\u7684 Firefox 2.0.0.11 :<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko\/20071127 Firefox\/2.0.0.11<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">Mac OS X \u4e2d\u7684 Camino 1.5.1:<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.6) Gecko\/20070809 Camino\/1.5.1<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u4e0a\u9762\u90fd\u662f\u57fa\u4e8e Gecko \u7684\u6d4f\u89c8\u5668\u6240\u53d6\u5f97\u7684 user-agent \u5b57\u4e32\uff0c\u533a\u522b\u53ea\u662f\u7248\u672c\u6709\u6240\u4e0d\u540c\u3002Mozilla \u7248\u672c 5.0 \u662f\u81ea\u4ece\u9996\u6b3e\u57fa\u4e8e Gecko \u53d1\u5e03\u540e\u5c31\u4e00\u76f4\u4e0d\u53d8\uff0c\u800c\u4e14\u4ee5\u540e\u6709\u53ef\u80fd\u4e5f\u4e0d\u4f1a\u53d8<sup>\u00b2<\/sup>\u3002<\/span><\/p>\n<h3><span style=\"color: #464646;\">WebKit<\/span><\/h3>\n<p><span style=\"color: #464646;\">2003 \u5e74\uff0cApple \u5ba3\u5e03\u53d1\u5e03\u9996\u6b3e\u4ed6\u4eec\u81ea\u4e3b\u5f00\u53d1\u7684 web \u6d4f\u89c8\u5668\uff1aSafari\u3002\u5b83\u7684\u5448\u73b0\u5f15\u64ce\u53eb WebKit\u3002\u5b83\u662f Linux \u4e2d\u7684 web \u6d4f\u89c8\u5668 Konqueror \u5448\u73b0\u5f15\u64ce KHTML \u7684\u4e00\u4e2a\u5206\u652f\uff0c\u51e0\u5e74\u540e\uff0cWebKit \u7684\u5f00\u6e90\u5438\u5f15\u4e86\u5448\u73b0\u5f15\u64ce\u7684\u5f00\u53d1\u4eba\u5458\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u8fd9\u6b3e\u65b0\u6d4f\u89c8\u5668\u548c\u5448\u73b0\u5f15\u64ce\u7684\u5f00\u53d1\u4eba\u5458\u4e5f\u9047\u5230\u4e86\u66fe\u7ecf IE 3.0 \u7c7b\u4f3c\u7684\u95ee\u9898\uff1a\u600e\u6837\u624d\u80fd\u6eb6\u5165\u4e3b\u6d41\u800c\u4e0d\u88ab\u8e22\u51fa\u5c40\uff1f\u7b54\u6848\u662f\uff1a\u5728 user-agent \u5b57\u4e32\u4e2d\u653e\u8be6\u5c3d\u7684\u4fe1\u606f\uff0c\u4ee5\u4fbf\u9a97\u53d6\u7f51\u7ad9\u7684\u4fe1\u4efb\u4f7f\u5b83\u4e0e\u5176\u5b83\u6d41\u884c\u7684\u6d4f\u89c8\u5668\u517c\u5bb9\u3002user-agent \u5b57\u4e32\u683c\u5f0f\u5982\u4e0b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (Platform; Encryption; OS-or-CPU; Language) AppleWebKit\/AppleWebKitVersion (KHTML, like Gecko) Safari\/SafariVersion<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u4e0b\u9762\u662f\u793a\u4f8b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit\/124 (KHTML, like Gecko) Safari\/125.1<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u8fd9 \u53c8\u662f\u4e2a\u633a\u957f\u7684 user-agent \u5b57\u4e32\uff0c\u5176\u4e2d\u5305\u62ec\u7684\u4fe1\u606f\u65e2\u6709 Apple WebKit \u7684\u7248\u672c\uff0c\u4e5f\u6709 Safari \u7684\u7248\u672c\u3002\u51e1\u662f\u57fa\u4e8e WebKit \u7684\u6d4f\u89c8\u5668\u90fd\u5c06\u81ea\u5df1\u4f2a\u88c5\u6210\u4e86 Mozilla 5.0\uff0c\u4e0e\u57fa\u4e8e Gecko \u6d4f\u89c8\u5668\u5b8c\u5168\u4e00\u6837\u3002\u4f46 Safari \u7684\u7248\u672c\u662f\u6d4f\u89c8\u5668\u7684\u6784\u5efa\u7248\u672c\u53f7(build number)\u3002Safari 1.25 \u5728 user-agent \u5b57\u4e32\u4e2d\u53f7\u4e3a 125.1(\u5982\u4e0a\u6240\u793a)\u3002Safari \u7248\u672c 3 \u7684 user-agent \u5b57\u4e32\u5305\u62ec\u4e86\u5b9e\u9645\u7684 Safari \u7248\u672c\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit\/522.15.5 (KHTML, like Gecko) Version\/3.0.3 Safari\/522.15.5<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5176 \u4e2d\u7684\u201c(KHTML, like Gecko)\u201d\u5728 Safari 1.0 \u9884\u89c8\u7248\u672c\u4e2d\u5c31\u6709\u4e86\uff0c\u8fd9\u5b57\u4e32\u90e8\u5206\u662f\u6700\u8010\u4eba\u5bfb\u5473\u53c8\u9971\u53d7\u8bdf\u75c5\u3002Apple \u7684\u91ce\u5fc3\u662f\u4e3a\u4e86\u8ba9\u5f00\u53d1\u4eba\u5458\u628a Safari \u5f53\u6210 Gecko\uff0c\u6240\u4ee5\u91c7\u53d6\u4e86\u5f53\u521d\u5fae\u8f6f IE user-agent \u7684\u7c7b\u4f3c\u505a\u6cd5\uff1aSafari \u662f\u517c\u5bb9 Mozilla \u7684\uff0c\u5426\u5219 Safari \u7528\u6237\u4f1a\u8ba4\u4e3a\u7528\u7684\u6d4f\u89c8\u5668\u4e0d\u53d7\u652f\u6301\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u800c\u5176\u5b83\u57fa\u4e8e WebKit \u7684\u6d4f\u89c8\u5668\u4e0e Safari \u4e0d\u540c\u7684\u662f\uff0c\u6ca1\u6709\u4e0a\u9762\u8bf4\u7684\u8fd9\u4e2a\u60c5\u51b5\uff0c\u6240\u4ee5\u68c0\u6d4b\u65ad\u5b9a\u6d4f\u89c8\u5668\u662f\u5426\u57fa\u4e8e WebKit \u6bd4\u770b\u6709\u6ca1\u6709\u660e\u786e\u6807 Safari \u66f4\u6709\u7528\u3002<\/span><\/p>\n<h3><span style=\"color: #464646;\">Konqueror<\/span><\/h3>\n<p><span style=\"color: #464646;\">Konqueror \u662f\u6b3e\u5728 KDE Linux \u684c\u9762\u73af\u5883\u4e2d\u7684\u6d4f\u89c8\u5668\uff0c\u57fa\u4e8e KHTML \u5f00\u6e90\u5448\u73b0\u5f15\u64ce\u3002\u5b83\u53ea\u53d1\u5e03\u4e86\u5728 Linux \u7684\u7248\u672c\uff0c\u4f46\u662f\u62e5\u6709\u6d3b\u8dc3\u7684\u7528\u6237\u7fa4\u3002\u4e3a\u4e86\u517c\u5bb9\u6027\u6700\u5927\u5316\uff0cuser-agent \u5b57\u4e32\u7684\u683c\u5f0f\u4e5f\u7d27\u8ddf IE \u7684\u540e\u5c18\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (compatible; Konqueror\/Version; OS-or-CPU)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">Konqueror 3.2 \u4e3a\u4e86\u4e0e WebKit user-agent \u5b57\u4e32\u53d8\u5316\u4fdd\u6301\u4e00\u81f4\uff0c\u5b83\u5c06 KHTML \u4f5c\u4e3a\u5b83\u7684\u6807\u8bc6\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (compatible; Konqueror\/Version; OS-or-CPU) KHTML\/KHTMLVersion (like Gecko)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (compatible; Konqueror\/3.5; SunOS) KHTML\/3.5.0 (like Gecko)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">Konqueror \u548c KHTML \u7684\u7248\u672c\u53f7\u6bd4\u8f83\u4e00\u81f4\uff0c\u552f\u4e00\u7684\u533a\u522b\u5c31\u662f\u4e0b\u70b9\u5904\u4e0d\u540c\uff0c\u6bd4\u5982Konquerer 3.5\u3001KHTML 3.5.1\u3002<\/span><\/p>\n<h3><span style=\"color: #464646;\">Chrome<\/span><\/h3>\n<p><span style=\"color: #464646;\">Google Chrome \u6d4f\u89c8\u5668\u4ee5 WebKit \u4f5c\u4e3a\u5448\u73b0\u5f15\u64ce\uff0cJavaScript \u5f15\u64ce\u5374\u7528\u4e86\u53e6\u4e00\u79cd\u3002\u6700\u521d\u53d1\u5e03\u7684\u7248\u672c\u662f 0.2\uff0c\u5b83\u7684 user-agent \u5b57\u4e32\u683c\u5f0f\u662f\u5728 webKit \u4fe1\u606f\u7684\u57fa\u7840\u4e0a\u53c8\u589e\u52a0\u4e86\u5982\u4e0b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (Platform; Encryption; OS-or-CPU; Language) AppleWebKit\/AppleWebKitVersion (KHTML, like Gecko) Chrome\/ChromeVersion Safari\/SafariVersion<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">Chrome 0.2 user-agent \u4fe1\u606f\u7684\u793a\u4f8b\u5982\u4e0b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit\/525.13 (KHTML, like Gecko) Chrome\/0.2.149.29 Safari\/525.13<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u867d\u6211\u4e0d\u6562\u5b8c\u5168\u4fdd\u8bc1\uff0c\u4f46\u5f88\u53ef\u80fd WebKit \u7248\u672c\u548c Safari \u7248\u672c\u603b\u4f1a\u4fdd\u6301\u540c\u6b65\u3002<\/span><\/p>\n<h3><span style=\"color: #464646;\">Opera<\/span><\/h3>\n<p><span style=\"color: #464646;\">Opera \u6d4f\u89c8\u5668\u9ed8\u8ba4 user-agent \u5b57\u4e32\u662f\u73b0\u4ee3\u6d4f\u89c8\u5668\u4e2d\u6700\u5408\u7406\u7684\uff0d\uff0d\u6b63\u786e\u7684\u6807\u8bc6\u4e86\u5b83\u81ea\u5df1\u53ca\u5176\u7248\u672c\u3002 \u5728 Opera 8.0 \u524d\uff0c\u5b83\u7684 user-agent \u5b57\u4e32\u683c\u5f0f\u5982\u4e0b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Opera\/Version (OS-or-CPU; Encryption) [Language]<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5728 Windows XP \u4e2d Opera 7.54 user-agent \u5b57\u4e32\u793a\u4f8b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Opera\/7.54 (Windows NT 5.1; U) [en]<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">Opera 8 user-agent \u5b57\u4e32\u7684\u8bed\u8a00\u90e8\u5206\u79fb\u5230\u4e86\u62ec\u53f7\u5185\u3002<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Opera\/Version (OS-or-CPU; Encryption; Language)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5728 Windows XP \u4e2d Opera 8 user-agent \u5b57\u4e32\u793a\u4f8b\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Opera\/8.0 (Windows NT 5.1; U; en)<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u5f53 \u65f6 Opera \u505a\u4e3a\u4e3b\u6d41\u6d4f\u89c8\u5668\u4e4b\u4e00\uff0c\u5b83\u7684 user-agent \u5b57\u4e32\u662f\u552f\u4e00\u4f7f\u7528\u4ea7\u54c1\u540d\u79f0\u548c\u7248\u672c\u5b8c\u5168\u771f\u5b9e\u7684\u6807\u8bc6\u4e86\u5b83\u81ea\u5df1\u3002\u4f46\u662f\u7531\u4e8e\u5927\u91cf\u7684\u6d4f\u89c8\u5668\u55c5\u63a2\u4ee3\u7801\u5728 Internet \u4e0a\u50cf\u8757\u866b\u98de\u8fc7\u822c\u53ea\u5403\u6807 Mozilla \u4ea7\u54c1\u540d\u7684 user-agent \u5b57\u4e32\uff0c\u9020\u6210\u4e86 Opera \u7684 user-agent \u5b57\u4e32\u53d1\u751f\u4e86\u5b8c\u5168\u7684\u6539\u53d8\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">Opera 9 user-agent \u5b57\u4e32\u6709\u4e24\u79cd\u4fee\u6539\u7684\u65b9\u5f0f\uff1a\u4e00\u79cd\u65b9\u5f0f\u662f\u5c06\u81ea\u5df1\u6807\u8bc6\u4e3a Firefox \u6216 IE \u6d4f\u89c8\u5668\u3002\u5728\u8fd9\u79cd\u65b9\u5f0f\u4e0b\uff0cuser-agent \u5b57\u4e32\u4e0e Firefox \u6216 IE \u7684\u51e0\u4e4e\u4e00\u6837\uff0c\u53ea\u4e0d\u8fc7\u672b\u5c3e\u9644\u52a0\u4e86\u201cOpera\u201d\u53ca\u7248\u672c\u53f7\u3002\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/5.0 (Windows NT 5.1; U; en; rv:1.8.1) Gecko\/20061208 Firefox\/2.0.0 Opera 9.50<\/code><\/span><\/pre>\n<pre><span style=\"color: #464646;\"><code>Mozilla\/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 9.50<\/code><\/span><\/pre>\n<p><span style=\"color: #464646;\">\u524d \u4e00\u5b57\u4e32\u5c06 Opera 9.5 \u6807\u8bc6\u4e3a Firefox 2\u3002\u540e\u4e00\u5b57\u4e32\u5c06 Opera 9.5 \u6807\u8bc6\u4e3a IE 6\uff0c\u5728\u4e24\u4e2a\u5b57\u4e32\u4e2d\u90fd\u5e26\u6709 Opera \u7248\u672c\u4fe1\u606f\u3002\u867d\u7136\u8fd9\u79cd\u65b9\u5f0f\u662f\u4f5c\u4e3a Firefox \u6216 IE \u6253\u5f00\u7684\uff0c\u4f46\u4e5f\u80fd\u8bc6\u522b\u51fa Opera\u3002\u53e6\u4e00\u79cd\u65b9\u6cd5\u5219\u662f\u6d4f\u89c8\u5668 user-agent \u5b57\u4e32\u6807\u8bc6\u4f2a\u88c5\u6210 Firefox \u6216 IE\uff0c\u540c\u65f6\u4e5f\u627e\u4e0d\u5230\u201cOpera\u201d\u5b57\u4e32\u53ca\u5176\u7248\u672c\u4fe1\u606f\u3002\u8fd9\u6837\u4ece\u5b57\u9762\u4e0a\u53bb\u533a\u5206 Opera \u6d4f\u89c8\u5668\u4fbf\u6210\u4e86\u201c\u4e0d\u53ef\u80fd\u5b8c\u6210\u7684\u4efb\u52a1\u201d\u3002<sup>\u00b3<\/sup><\/span><\/p>\n<h3><span style=\"color: #464646;\">\u7ed3\u8bba<\/span><\/h3>\n<p><span style=\"color: #464646;\">user-agent \u5b57\u4e32\u53f2\u53ef\u4ee5\u8bf4\u660e\u66fe\u5bf9 user-agent \u55c5\u63a2\u8bf4\u4e0d\u7684\u539f\u56e0\uff1aIE \u60f3\u8981\u5c06\u81ea\u5df1\u8bc6\u522b\u4e3a Netscape 4\uff0cKonqueror \u548c WebKit \u60f3\u8981\u8bc6\u522b\u4e3a Firefox\uff0cChrome \u60f3\u8981\u8bc6\u522b\u4e3a Safari\u3002\u8fd9\u6837\u4f7f\u5f97\u9664 Opera \u5916\u6240\u6709\u6d4f\u89c8\u5668\u7684 user-agent \u55c5\u63a2\u533a\u522b\u5f88\u5c0f\uff0c\u60f3\u8981\u4ece\u4e00\u5806\u832b\u832b\u6d4f\u89c8\u5668\u6d77\u6d0b\u4e2d\u627e\u51fa\u6709\u7528\u7684\u6807\u8bc6\u592a\u5c11\u4e86\u3002\u5173\u4e8e\u55c5\u63a2\u8981\u8bb0\u4f4f\uff1a\u4e00\u6b3e\u6d4f\u89c8\u5668\u4e0e\u5176\u5b83\u6d4f\u89c8\u5668\u662f\u517c\u5bb9\u7684\uff0c\u8fd9\u6837\u9020\u6210\u4e86\u4e0d\u80fd\u5b8c\u5168\u51c6\u786e\u7684\u65ad\u5b9a\u662f\u54ea\u6b3e \u6d4f\u89c8\u5668\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u6bd4\u5982\u8bf4 Chrome \uff0c\u5b83\u58f0\u79f0\u4efb\u4f55\u53ef\u4ee5\u5728 Safari 3 \u8bbf\u95ee\u7684\u7f51\u7ad9 Chrome \u4e5f\u90fd\u53ef\u4ee5\u8bbf\u95ee\uff0c\u4f46\u662f\u5bf9\u68c0\u6d4b Chrome \u6ca1\u6709\u4e00\u70b9\u7528\u3002\u4e3a\u4e86\u6d4f\u89c8\u5668\u7684\u517c\u5bb9&#8211;\u8fd9\u4fbf\u662f\u8fd9\u4e2a\u58f0\u660e\u7684\u7406\u7531\u3002<\/span><\/p>\n<\/div>\n<p><span style=\"color: #464646;\">\u00a0<wbr \/><\/span><\/p>\n<p><span style=\"color: #464646;\">\u00a0<wbr \/><\/span><\/p>\n<p><span style=\"color: #464646;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u5728\u6b64\u5206\u5272&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/p>\n<p><span style=\"color: #464646;\">\u00a0<wbr \/><\/span><\/p>\n<p><span style=\"color: #464646;\">\u00a0<wbr \/><\/span><\/p>\n<p><span style=\"color: #464646;\">\u8d77\u521d\u524d\u7aef\u5de5\u7a0b\u5e08\u4eec\u5c31\u6781\u529b\u53cd\u5bf9\u6d4f\u89c8\u5668\u68c0\u6d4b\uff0c\u4ed6\u4eec\u8ba4\u4e3a\u7c7b\u4f3cuser-agent\u55c5\u63a2\u7684\u65b9\u6cd5\u662f\u5f88\u4e0d\u597d\u7684\uff0c\u7406\u7531\u662f\u5b83\u5e76\u4e0d\u662f\u4e00\u79cd\u9762\u5411\u672a\u6765\u7684\u4ee3\u7801\uff0c\u65e0\u6cd5\u9002\u5e94\u65b0\u7248\u7684\u6d4f\u89c8\u5668\u3002\u66f4\u597d\u7684\u505a\u6cd5\u662f\u4f7f\u7528\u7279\u6027\u68c0\u6d4b\uff0c\u5c31\u50cf\u8fd9\u6837\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\">if (navigator.userAgent.indexOf(\"MSIE 7\") &gt; -1){ \/\/do something }<\/span><\/pre>\n<p><span style=\"color: #464646;\">\u800c\u66f4\u597d\u7684\u505a\u6cd5\u662f\u8fd9\u6837\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\">if(document.all){ \/\/do something }<\/span><\/pre>\n<p><span style=\"color: #464646;\">\u8fd9\u4e24\u79cd\u65b9\u5f0f\u5e76\u4e0d\u76f8\u540c\u3002\u524d\u8005\u662f\u68c0\u6d4b\u6d4f\u89c8\u5668\u7684\u7279\u6b8a\u540d\u79f0\u548c\u7248\u672c\uff1b\u540e\u8005\u5374\u662f\u68c0\u6d4b\u6d4f\u89c8\u5668\u7684\u7279\u6027\u3002UA\u55c5\u63a2\u80fd\u591f\u7cbe\u786e\u5f97\u5230\u6d4f\u89c8\u5668\u7684\u7c7b\u578b\u548c\u7248\u672c\uff08\u81f3\u5c11\u80fd\u5f97\u77e5\u6d4f\u89c8\u5668\u7c7b\u578b\uff09\uff0c\u800c\u7279\u6027\u68c0\u6d4b\u5374\u662f\u53bb\u786e\u5b9a\u6d4f\u89c8\u5668\u662f\u5426\u62e5\u6709\u67d0\u4e2a\u5bf9\u8c61\u6216\u8005\u652f\u6301\u67d0\u4e2a\u65b9\u6cd5\u3002\u6ce8\u610f\u8fd9\u4e24\u8005\u662f\u5b8c\u5168\u4e0d\u540c\u7684\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u56e0\u4e3a\u7279\u6027\u68c0\u6d4b\u4f9d\u8d56\u4e8e\u54ea\u4e9b\u6d4f\u89c8\u5668\u652f\u6301\uff0c\u5f53\u51fa\u73b0\u65b0\u7248\u672c\u6d4f\u89c8\u5668\u7684\u65f6\u5019\u9700\u8981\u7e41\u7410\u7684\u786e\u8ba4\u5de5\u4f5c\u3002\u4f8b\u5982DOM\u6807\u51c6\u521a\u51fa\u73b0\u7684\u65f6\u5019\uff0c\u5e76\u4e0d\u662f\u6240\u6709\u6d4f\u89c8\u5668\u90fd\u652f\u6301getElementById()\u65b9\u6cd5\uff0c\u6240\u4ee5\u4e00\u5f00\u59cb\u4ee3\u7801\u53ef\u80fd\u662f\u8fd9\u6837\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\">if(document.getElementByIdx_x){ \/\/DOM element = document.getElementByIdx_x(id); } else if (document.all) { \/\/IE element = document.all[id]; } else if (document.layers){ \/\/Netscape &lt; 6 element = document.layers[id]; }<\/span><\/pre>\n<p><span style=\"color: #464646;\">\u8fd9\u662f\u7279\u6027\u68c0\u6d4b\u5f88\u597d\u7684\u4e00\u4e2a\u4f8b\u5b50\uff0c\u4eae\u70b9\u5728\u4e8e\u5f53\u5176\u5b83\u6d4f\u89c8\u5668\u5f00\u59cb\u652f\u6301getElementById()\u65b9\u6cd5\u65f6\u4e0d\u5fc5\u4fee\u6539\u4ee3\u7801\u3002<\/span><\/p>\n<h3><span style=\"color: #464646;\">\u6df7\u5408\u65b9\u5f0f<\/span><\/h3>\n<p><span style=\"color: #464646;\">\u540e\u6765\u524d\u7aef\u5de5\u7a0b\u5e08\u4eec\u8003\u8651\u6539\u8fdb\u7684\u5199\u6cd5\uff0c\u4ee3\u7801\u53d8\u5316\u6210\u8fd9\u6837\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\">\/\/AVOID!!! if (document.all) { \/\/IE id = document.uniqueID; } else { id = Math.random(); }<\/span><\/pre>\n<p><span style=\"color: #464646;\">\u8fd9\u4e2a\u4ee3\u7801\u7684\u95ee\u9898\u662f\u901a\u8fc7\u68c0\u6d4bdocument.all\u5c5e\u6027\u6765\u786e\u5b9a\u662f\u5426\u662fIE\u3002\u5f53\u786e\u5b9a\u662fIE\u540e\uff0c\u5047\u5b9a\u4f7f\u7528\u79c1\u6709\u7684document.uniqueID\u5c5e\u6027\u4e5f\u662f\u5b89\u5168\u7684\u3002\u7136\u800c\uff0c\u76ee\u524d\u6240\u4f5c\u7684\u53ea\u662f\u786e\u5b9a\u662f\u5426\u652f\u6301document.all\uff0c\u5e76\u975e\u662f\u53bb\u8fa8\u8bc6\u6d4f\u89c8\u5668\u662f\u5426\u4e3aIE\u3002\u4ec5\u4ec5\u652f\u6301document.all\u7684\u8bdd\u4e5f\u4e0d\u610f\u5473\u7740document.uniqueID\u662f\u53ef\u7528\u7684\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u540e\u6765\u4eba\u4eec\u5f00\u59cb\u8fd9\u6837\u5199\uff0c\u7528\u4e0b\u9762\u90a3\u884c\u4ee3\u66ff\u4e0a\u9762\u7684\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\">var isIE = navigator.userAgent.indexOf(\"MSIE\") &gt; -1; \/\/\u4e0b\u9762\u8fd9\u884c\u4ee3\u66ff\u4e0a\u9762\u90a3\u884c var isIE = !!document.all;<\/span><\/pre>\n<p><span style=\"color: #464646;\">\u8fd9\u4e9b\u53d8\u5316\u8bf4\u660e\u5927\u5bb6\u5bf9\u201c\u4e0d\u8981\u4f7f\u7528UA\u55c5\u63a2\u201d\u5b58\u5728\u8bef\u89e3\u2014\u2014\u4e0d\u518d\u5bf9\u6d4f\u89c8\u5668\u7684\u8be6\u7ec6\u4fe1\u606f\u8fdb\u884c\u68c0\u6d4b\uff0c\u53d6\u800c\u4ee3\u4e4b\u7684\u662f\u901a\u8fc7\u7279\u6027\u7684\u652f\u6301\u6765\u63a8\u65ad\u3002\u8fd9\u79cd<strong>\u57fa\u4e8e\u6d4f\u89c8\u5668\u7279\u6027\u68c0\u6d4b<\/strong>\u7684\u65b9\u5f0f\u975e\u5e38\u4e0d\u597d\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u540e\u6765\u524d\u7aef\u4eec\u53d1\u73b0document.all\u5e76\u4e0d\u53ef\u9760\uff0c\u66f4\u597d\u7684\u68c0\u6d4bIE\u53d8\u4e3a\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\">var isIE = !!document.all &amp;&amp; document.uniqueID;<\/span><\/pre>\n<p><span style=\"color: #464646;\">\u8fd9\u79cd\u5b9e\u73b0\u65b9\u5f0f\u9677\u5165\u6b67\u9014\u3002\u4e0d\u4ec5\u9700\u8981\u8d39\u65f6\u8d39\u4e8b\u5730\u53bb\u8bc6\u522b\u6d4f\u89c8\u5668\u6240\u589e\u52a0\u7684\u7279\u6027\u652f\u6301\uff0c\u53e6\u5916\u4e5f\u4e0d\u80fd\u786e\u5b9a\u5176\u5b83\u6d4f\u89c8\u5668\u5f00\u59cb\u652f\u6301\u76f8\u540c\u7684\u7279\u6027\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u5982\u679c\u4f60\u8ba4\u4e3a\u8fd9\u6837\u7684\u4ee3\u7801\u5e76\u672a\u88ab\u5e7f\u6cdb\u4f7f\u7528\uff0c\u90a3\u4e48\u770b\u770b\u6765\u81ea\u4e8e\u8001\u7248\u672c\u7684Mootools\u4ee3\u7801\u7247\u6bb5\u5427\uff1a<\/span><\/p>\n<pre><span style=\"color: #464646;\">\/\/from MooTools 1.1.2 if (window.ActiveXObject) windows.ie = window[window.XMLHttpRequest ? 'ie7' : 'ie6'] = true; else if (document.childNodes &amp;&amp; !document.all &amp;&amp; !navigator.taintEnabled) window.webkit = window[window.xpath ? 'webkit420' : 'webkit419'] = true; else if (document.getBoxObjectFor != null || window.mozInnerScreenX != null) window.gecko = true;<\/span><\/pre>\n<p><span style=\"color: #464646;\">\u6ce8\u610f\u5b83\u662f\u5982\u4f55\u4f7f\u7528\u7279\u6027\u68c0\u6d4b\u7684\u3002\u6211\u53ef\u4ee5\u6307\u51fa\u5b83\u4e00\u7cfb\u5217\u7684\u95ee\u9898\uff0c\u6bd4\u5982\u901a\u8fc7\u68c0\u6d4bwindows.ie\u4f1a\u5c06ie8\u8bef\u8ba4\u4e3aie7\u3002<\/span><\/p>\n<h3><span style=\"color: #464646;\">\u4f59\u6ce2<\/span><\/h3>\n<p><span style=\"color: #464646;\">\u968f\u7740\u6d4f\u89c8\u5668\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u4f7f\u7528\u7279\u6027\u68c0\u6d4b\u53d8\u5f97\u8d8a\u6765\u8d8a\u56f0\u96be\u548c\u4e0d\u53ef\u9760\u3002\u4f46\u662fMootools 1.2.4\u4ecd\u7136\u4f7f\u7528\u8fd9\u4e00\u65b9\u6cd5\uff0c\u4f8b\u5982\uff1agetBoxObjectFor()\u3002<\/span><\/p>\n<pre><span style=\"color: #464646;\">\/\/from MooTools 1.2.4 var Browser = $merge({ Engine: {name: 'unknown', version: 0}, Platform: {name: (window.orientation != undefined) ? 'ipod' : (navigator.platform.match(\/mac|win|linux\/i) || ['other'])[0].toLowerCase()}, Features: {xpath: !!(document.evaluate), air: !!(window.runtime), query: !!(document.querySelector)}, Plugins: {}, Engines: { presto: function(){ return (!window.opera) ? false : ((arguments.callee.caller) ? 960 : ((document.getElementsByClassName) ? 950 : 925)); }, trident: function(){ return (!window.ActiveXObject) ? false : ((window.XMLHttpRequest) ? ((document.querySelectorAll) ? 6 : 5) : 4); }, webkit: function(){ return (navigator.taintEnabled) ? false : ((Browser.Features.xpath) ? ((Browser.Features.query) ? 525 : 420) : 419); }, gecko: function(){ return (!document.getBoxObjectFor &amp;&amp; window.mozInnerScreenX == null) ? false : ((document.getElementsByClassName) ? 19 : 18); } } }, Browser || {});<\/span><\/pre>\n<h3><span style=\"color: #464646;\">\u5e94\u8be5\u600e\u4e48\u505a\uff1f<\/span><\/h3>\n<p><span style=\"color: #464646;\">\u7279\u6027\u68c0\u6d4b\u662f\u4e2a\u5e94\u8be5\u907f\u514d\u7684\u65b9\u6cd5\uff0c\u5c3d\u7ba1\u76f4\u63a5\u8fdb\u884c\u7279\u6027\u68c0\u6d4b\u662f\u4e2a\u5f88\u597d\u7684\u65b9\u6cd5\uff0c\u5e76\u4e14\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\u80fd\u6ee1\u8db3\u9700\u6c42\u3002\u4e00\u822c\u53ea\u8981\u5728\u68c0\u6d4b\u524d\u77e5\u9053\u8fd9\u4e2a\u7279\u6027\u662f\u5426\u88ab\u5b9e\u73b0\u5373\u53ef\uff0c\u800c\u4e0d\u4f1a\u53bb\u8003\u8651\u5b83\u4eec\u4e4b\u95f4\u7684\u5173\u7cfb\u3002<\/span><\/p>\n<p><span style=\"color: #464646;\">\u6211\u5e76\u975e\u662f\u8bf4\u6c38\u8fdc\u4e0d\u4f7f\u7528\u6d4f\u89c8\u5668\u7279\u6027\u68c0\u6d4b\u800c\u662f\u57fa\u4e8eUA\u55c5\u63a2\uff0c\u56e0\u4e3a\u6211\u76f8\u4fe1\u5b83\u8fd8\u662f\u6709\u5f88\u591a\u7528\u9014\u7684\uff0c\u7136\u800c\u6211\u4e0d\u76f8\u4fe1\u5b83\u6709\u5f88\u591a\u5408\u7406\u7684\u7528\u9014\u3002\u5982\u679c\u4f60\u8003\u8651UA\u55c5\u63a2\u7684\u8bdd\uff0c \u8bf7\u5148\u8d2f\u5f7b\u8fd9\u4e00\u601d\u60f3\uff1a\u552f\u4e00\u5b89\u5168\u7684\u65b9\u5f0f\u662f\u9488\u5bf9\u7279\u5b9a\u6d4f\u89c8\u5668\u7684\u7279\u5b9a\u7248\u672c\uff0c\u8d85\u51fa\u8303\u56f4\u4e4b\u5916\u90fd\u662f\u4e0d\u53ef\u9760\u7684\u2014\u2014\u4f8b\u5982\u65b0\u51fa\u7684\u6d4f\u89c8\u5668\u7248\u672c\u3002\u5176\u5b9e\u8fd9\u6837\u505a\u4e5f\u662f\u4e2a\u660e\u667a\u7684\u529e\u6cd5\uff0c\u56e0\u4e3a\u76f8 \u8f83\u4e8e\u5411\u524d\u517c\u5bb9\u4e0d\u786e\u5b9a\u7684\u65b0\u7248\u672c\u800c\u8a00\uff0c\u5411\u540e\u517c\u5bb9\u8001\u7248\u672c\u662f\u6700\u7b80\u5355\u7684\u505a\u6cd5\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7279\u6027\u68c0\u6d4b\u5e76\u975e\u6d4f\u89c8\u5668\u68c0\u6d4b \u4e00\u3001\u6d4f\u89c8\u5668\u4eec\u7684\u5bb6\u65cf\u53f2 \u8f83\u53e4\u7684\u6d4f\u89c8\u5668 1993&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-485","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=485"}],"version-history":[{"count":1,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/485\/revisions"}],"predecessor-version":[{"id":486,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/485\/revisions\/486"}],"wp:attachment":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}