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-2g
、2g
、3g
或 4g
之一。该值是使用最近观察到的往返时间和下行链路值的组合来确定的。
值
一个字符串,是 slow-2g
、2g
、3g
或 4g
之一。
规范
Specification |
---|
Network Information API # dom-networkinformation-effectivetype |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
effectiveType |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.