NetworkInformation.downlink
Experimental
这是一个实验中的功能
此功能某些浏览器尚在开发中,请参考浏览器兼容性表格以得到在不同浏览器中适合使用的前缀。由于该功能对应的标准文档可能被重新修订,所以在未来版本的浏览器中该功能的语法和行为可能随之改变。
downlink
是 NetworkInformation
接口的一个只读属性,返回以Mb/s为单位的有效带宽,并保留该值为25kb/s的最接近的整数倍。该值基于最近监测的保持活跃连接的应用层吞吐量,排除了到私有地址空间的连接。当缺少最近的带宽测量数据时,该属性由底层连接技术属性决定。
Syntax
var downLink = NetworkInformation.downlink
Value
double
双精度浮点数。
Specifications
Specification | Status | Comment |
---|---|---|
Network Information API downlink |
Draft | Initial definition. |
Browser Compatibility
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 61 | ? | ? | 48 | ? |
Available in workers | 61 | ? | ? | 48 | ? |
Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Basic support | 50 | 38 | ? | ? | ? | 37 | ? |
Available in workers | 50 | 38 | ? | ? | ? | 37 | ? |