HTML5 中是否有发现客户端互联网连接类型的功能?

发布于 2024-12-20 01:25:03 字数 122 浏览 3 评论 0原文

HTML5 Web 应用程序是否有办法发现客户端上的连接类型? (类似于苹果的可达性类别)

我想主要检查连接是否是 GPRS/EDGE/3G/... 与 WiFi,某些类型的数据上传仅在通过 WiFi 连接时发生。

Is there a way for an HTML5 web-app to discover the connection-type on the client? (Something similar to, say, Apple's reachability class)

I want to mainly check whether the connection is a GPRS/EDGE/3G/... versus a WiFi, with certain kinds of data uploads only happening when the connection is over WiFi.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫轩蝶泪 2024-12-27 01:25:03

没有html5不支持。您可以检查发送和接收文件所需的时间来了解用户的速度

No html5 doesn't support it . You can instead check the time it takes to send and receive a file to know the users speed

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文