Navigator:connection 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Navigator
接口的 connection
只读属性返回一个包含有关系统网络连接信息的 NetworkInformation
对象,例如用户设备的当前带宽或连接是否按流量计费。
这可以用于根据用户的连接状态来选择高清晰度内容或低清晰度内容。
值
一个 NetworkInformation
对象。
规范
Specification |
---|
Network Information API # connection-attribute |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
connection |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
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.