NetworkInformation:effectiveType 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

备注: 此特性在 Web Worker 中可用。

NetworkInformation 接口的 effectiveType 只读属性返回连接的有效类型,为 slow-2g2g3g4g 之一。该值是使用最近观察到的往返时间和下行链路值的组合来确定的。

一个字符串,是 slow-2g2g3g4g 之一。

规范

Specification
Network Information API
# dom-networkinformation-effectivetype

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
effectiveType

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support

参见