<tfoot id='ueiKy'></tfoot>

    1. <small id='ueiKy'></small><noframes id='ueiKy'>

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

        如何识别用户代理是否是 Windows 8 平板电脑?

        how to identify if user agent is windows 8 tablet?(如何识别用户代理是否是 Windows 8 平板电脑?)

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

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

            1. <tfoot id='ZSLe0'></tfoot>
                <tbody id='ZSLe0'></tbody>
                <bdo id='ZSLe0'></bdo><ul id='ZSLe0'></ul>

                <small id='ZSLe0'></small><noframes id='ZSLe0'>

                • 本文介绍了如何识别用户代理是否是 Windows 8 平板电脑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个网络应用程序.我是我的 JavaScript,我通过用户代理字符串来识别设备,如下所示:

                  I have a web application. I my JavaScript, I am identifying devices by user agent string as follows:

                  _android = navigator.userAgent.toLowerCase().indexOf("android");
                  
                  _iOS = navigator.platform.indexOf("iPhone");
                  

                  我的任务是识别设备是否是win8平板电脑?

                  My task is to identify if device is win8 tablet or not?

                  我已经看过这篇文章.但是,字符串Windows NT"很可能出现在所有 PC 浏览器的 useragent 中.那么,我需要找出一种客户端方法来识别设备是否是 win8 平板电脑?

                  I have already seen this post. But, the string "Windows NT" is likely to appear in useragent on all the PC browsers. So, I need to find out a client side way of identifying if device is win8 tablet?

                  有什么想法吗?

                  推荐答案

                  你无法识别它是否是平板电脑,但你可以识别它是否有touch.这是这里的 IE 用户代理:

                  You can't identify if it is a tablet or not, but you can identify if it has touch or not. This is the IE user agent here:

                  Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; Touch)
                  

                  只有在有触摸的情况下才会出现最后的触摸.

                  The touch at the end is only present if touch is.

                  然而,如果你只是想识别触摸功能,你应该使用特征检测而不是用户代理嗅探.

                  However, if you are just trying to identify touch capabilities, you should use feature detection rather than user agent sniffing.

                  这篇关于如何识别用户代理是否是 Windows 8 平板电脑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                  getFullYear returns year before on first day of year(getFullYear 在一年的第一天返回前一年)

                  • <bdo id='dxEOw'></bdo><ul id='dxEOw'></ul>

                        <small id='dxEOw'></small><noframes id='dxEOw'>

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

                            <tbody id='dxEOw'></tbody>
                          <legend id='dxEOw'><style id='dxEOw'><dir id='dxEOw'><q id='dxEOw'></q></dir></style></legend>
                            <tfoot id='dxEOw'></tfoot>