【问题标题】:Are there known issues with navigator.onLine on Android 2.1?Android 2.1 上的 navigator.onLine 是否存在已知问题?
【发布时间】:2010-05-14 04:24:33
【问题描述】:

在 Android 2.1 上是否存在与 navigator.onLine 相关的已知问题?我在飞行模式下有一个 Droid,但 navigator.onLine 似乎无论如何都返回了 true。 (我使用 HTML 清单来缓存页面,它的行为在 Mobile Safari 和 Firefox 的离线模式下运行良好。)

【问题讨论】:

    标签: android offline


    【解决方案1】:

    是的,据我所知,navigator.onLine 在 Droid 2.1 上总是返回 true。我认为这个问题已经在 2.2 中与许多其他与离线相关的 API 一起得到解决,包括连接类型的新 navigator.connection 枚举、当前正在使用的连接的 navigator.connection.type 以及“ononline”和“onoffline” " 事件。

    Short description of this can be found here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-10-22
      • 1970-01-01
      • 2020-01-23
      • 1970-01-01
      • 2011-03-03
      • 2017-10-18
      • 2013-06-17
      • 1970-01-01
      相关资源
      最近更新 更多