浏览器检测脚本为navigator.platform提供了错误的位

时间:2015-05-26 03:04:05

标签: javascript

我使用chrome浏览器

在jsfiddle中运行以下代码
aploetz@cqlsh:stackoverflow2> SELECT workername, meetingtime, meetingid, meetingname
    FROM meetingsbyworker WHERE workerid=77cb9f64-3cb8-43f9-ab0c-b907b01c4404;

 workername | meetingtime              | meetingid                            | meetingname
------------+--------------------------+--------------------------------------+--------------------
    Vickers | 2093-12-29 13:01:00-0600 | c7cea773-4c99-445f-928d-5b8a511c843b |   Wake Mr. Weyland
    Vickers | 2093-12-26 18:22:00-0600 | 3ea1282b-a465-4626-bd76-c65dd17b9f26 |   Head Examination
    Vickers | 2093-12-25 08:08:00-0600 | 031e457b-2660-448b-a1d5-68c6cce3a820 | Project Prometheus

(3 rows)
aploetz@cqlsh:stackoverflow2> SELECT workername, meetingtime, meetingid, meetingname
    FROM meetingsbyworker WHERE workerid=939657c2-e0cb-4a61-87d8-2a1739161d2a;

 workername | meetingtime              | meetingid                            | meetingname
------------+--------------------------+--------------------------------------+------------------
  Ford, Dr. | 2093-12-29 13:01:00-0600 | c7cea773-4c99-445f-928d-5b8a511c843b | Wake Mr. Weyland
  Ford, Dr. | 2093-12-26 18:22:00-0600 | 3ea1282b-a465-4626-bd76-c65dd17b9f26 | Head Examination

(2 rows)

并得到以下结果

  

Mozilla - Netscape - 5.0(Windows NT 6.1; WOW64)AppleWebKit / 537.36   (KHTML,与Gecko一样)Chrome / 42.0.2311.152 Safari / 537.36 - Mozilla / 5.0   (Windows NT 6.1; WOW64)AppleWebKit / 537.36(KHTML,与Gecko一样)   Chrome / 42.0.2311.152 Safari / 537.36 - Win32

除了

之外,情况很好
console.log(navigator.appCodeName + ' - ' + navigator.appName + ' - ' + navigator.appVersion + ' - ' + navigator.userAgent + ' - ' + navigator.platform);

而我的操作系统是64位。当它说平台时,64位操作系统应该只表示它为64位,但这里它的不同。谁能解释一下?

由于

0 个答案:

没有答案