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

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

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

      有没有办法使用javascript检测网络连接类型?

      时间:2024-04-18
      <tfoot id='71VvK'></tfoot>

      <small id='71VvK'></small><noframes id='71VvK'>

    3. <legend id='71VvK'><style id='71VvK'><dir id='71VvK'><q id='71VvK'></q></dir></style></legend>

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

                <tbody id='71VvK'></tbody>

              • 本文介绍了有没有办法使用javascript检测网络连接类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想知道是否有任何方法可以检查用户是否使用 javascript 从 2G、3G、4G 或 WiFi 连接.据我所知,只有 Mozilla 提供了一个网络信息 API,它有助于检测一般连接类型,如wifi"、蜂窝"等.

                I would like to know is there any way to check if user is connected from 2G, 3G, 4G, or WiFi using javascript. As of my knowledge only Mozilla provides a Network Information API which helps to detect general connection type like 'wifi', 'cellular' etc.

                推荐答案

                将网络暴露给 javascript 是一种错误的方法.无论如何,为了您更好地理解,请通过以下链接

                It is a wrong approach to expose your network to javascript. Anyways for your better understanding please go through the below link

                如何检查连接使用 HTML5/JavaScript 输入(WiFi/LAN/WWAN)?

                还有一个可以提供帮助,但仅支持 mozilla,有关信息,您可以访问以下链接

                And there is one that can be of help but only supports mozilla and for the info you can visit the below link

                https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API

                这篇关于有没有办法使用javascript检测网络连接类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:PhoneGap 外部主机通配符 下一篇:javascript oop、instanceof 和基类

                相关文章

                  <tfoot id='1xrjc'></tfoot>

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

                  <small id='1xrjc'></small><noframes id='1xrjc'>

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