<i id='4iquN'><tr id='4iquN'><dt id='4iquN'><q id='4iquN'><span id='4iquN'><b id='4iquN'><form id='4iquN'><ins id='4iquN'></ins><ul id='4iquN'></ul><sub id='4iquN'></sub></form><legend id='4iquN'></legend><bdo id='4iquN'><pre id='4iquN'><center id='4iquN'></center></pre></bdo></b><th id='4iquN'></th></span></q></dt></tr></i><div id='4iquN'><tfoot id='4iquN'></tfoot><dl id='4iquN'><fieldset id='4iquN'></fieldset></dl></div>
    <tfoot id='4iquN'></tfoot>

  1. <legend id='4iquN'><style id='4iquN'><dir id='4iquN'><q id='4iquN'></q></dir></style></legend>

    <small id='4iquN'></small><noframes id='4iquN'>

    • <bdo id='4iquN'></bdo><ul id='4iquN'></ul>

      从浏览器检测确切的操作系统版本

      时间:2023-09-25

          <tbody id='7ng91'></tbody>
        <tfoot id='7ng91'></tfoot>

      • <legend id='7ng91'><style id='7ng91'><dir id='7ng91'><q id='7ng91'></q></dir></style></legend>
        <i id='7ng91'><tr id='7ng91'><dt id='7ng91'><q id='7ng91'><span id='7ng91'><b id='7ng91'><form id='7ng91'><ins id='7ng91'></ins><ul id='7ng91'></ul><sub id='7ng91'></sub></form><legend id='7ng91'></legend><bdo id='7ng91'><pre id='7ng91'><center id='7ng91'></center></pre></bdo></b><th id='7ng91'></th></span></q></dt></tr></i><div id='7ng91'><tfoot id='7ng91'></tfoot><dl id='7ng91'><fieldset id='7ng91'></fieldset></dl></div>

            • <bdo id='7ng91'></bdo><ul id='7ng91'></ul>

              1. <small id='7ng91'></small><noframes id='7ng91'>

                本文介绍了从浏览器检测确切的操作系统版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我想知道是否有一种方法可以使用 PHP/JS/ASP 从我的浏览器中检测到确切的操作系统版本?

                I was wondering if there is a way I can detect the exact Operating System version from my browser using PHP/JS/ASP?

                我知道我可以检测操作系统的类型(Windows XP、Windows Vista、OS X 等),但我需要检测确切的版本:Vista Business、Vista Ultimate、Windows XP Home、Windows XP Pro 等..

                I know I can detect the type of OS (Windows XP,Windows Vista,OS X,etc) but I need to detect the exact version: Vista Business, Vista Ultimate, Windows XP Home, Windows XP Pro, etc...

                推荐答案

                简短回答:你不能.

                长答案:

                您所拥有的只是 HTTP User-Agent 标头中的信息,其中通常包含操作系统名称和版本.

                All you have is the information in the HTTP User-Agent header, which usually contains the OS name and version.

                通常,在 Mac OS 和 Linux 上运行的浏览器会发送足够的信息来识别确切的操作系统.例如,这是我的 User-Agent 标头:

                Usually, browsers running on Mac OS and Linux send enough information to identify the exact OS. For example, here's my User-Agent header:

                Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009030423 Ubuntu/8.10 (intrepid) Firefox/3.0.7

                Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009030423 Ubuntu/8.10 (intrepid) Firefox/3.0.7

                你可以看到我正在运行 Ubuntu 8.10 Intrepid Ibex.

                You can see that I'm running Ubuntu 8.10 Intrepid Ibex.

                以下是 Firefox 和 Safari 4 Beta 在我的 MacBook Pro 上的报告:

                And here's what Firefox and Safari 4 Beta report on my MacBook Pro:

                Mozilla/5.0(Macintosh;U;Intel Mac OS X 10.5;en-US;rv:1.9.0.7)Gecko/2009021906 Firefox/3.0.7

                Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7

                Mozilla/5.0(Macintosh;U;Intel Mac OS X 10_5_6;en-us)AppleWebKit/528.16(KHTML,如 Gecko)版本/4.0 Safari/528.16

                Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16

                另一方面,Windows 浏览器通常只报告操作系统版本而不是特定的软件包(Pro、Business 等):

                Windows browsers, on the other hand, usually only report the OS version and not the specific package (Pro, Business, etc.):

                Mozilla/5.0(Windows;U;Windows NT 5.1;en-US;rv:x.x.x)Gecko/20041107 Firefox/x.x

                Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:x.x.x) Gecko/20041107 Firefox/x.x

                这篇关于从浏览器检测确切的操作系统版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:PHP:如果 Internet Explorer 6、7、8 或 9 下一篇:PHP无头浏览器?

                相关文章

                最新文章

                <i id='dVAWJ'><tr id='dVAWJ'><dt id='dVAWJ'><q id='dVAWJ'><span id='dVAWJ'><b id='dVAWJ'><form id='dVAWJ'><ins id='dVAWJ'></ins><ul id='dVAWJ'></ul><sub id='dVAWJ'></sub></form><legend id='dVAWJ'></legend><bdo id='dVAWJ'><pre id='dVAWJ'><center id='dVAWJ'></center></pre></bdo></b><th id='dVAWJ'></th></span></q></dt></tr></i><div id='dVAWJ'><tfoot id='dVAWJ'></tfoot><dl id='dVAWJ'><fieldset id='dVAWJ'></fieldset></dl></div>

              2. <small id='dVAWJ'></small><noframes id='dVAWJ'>

                      <bdo id='dVAWJ'></bdo><ul id='dVAWJ'></ul>
                  1. <tfoot id='dVAWJ'></tfoot>

                  2. <legend id='dVAWJ'><style id='dVAWJ'><dir id='dVAWJ'><q id='dVAWJ'></q></dir></style></legend>