--- title: NetworkInformation.downlink slug: Web/API/NetworkInformation/downlink translation_of: Web/API/NetworkInformation/downlink ---
{{SeeCompatTable}}{{APIRef("Network Information API")}}
downlink
是 {{domxref("NetworkInformation")}} 接口的一个只读属性,返回以Mb/s为单位的有效带宽,并保留该值为25kb/s的最接近的整数倍。该值基于最近监测的保持活跃连接的应用层吞吐量,排除了到私有地址空间的连接。当缺少最近的带宽测量数据时,该属性由底层连接技术属性决定。
var downLink = NetworkInformation.downlink
{{jsxref("double")}} 双精度浮点数。
Specification | Status | Comment |
---|---|---|
{{SpecName('Network Information','#dom-networkinformation-downlink','downlink')}} | {{Spec2('Network Information')}} | Initial definition. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatChrome(61)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatOpera(48)}} | {{CompatUnknown}} |
Available in workers | {{CompatChrome(61)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatOpera(48)}} | {{CompatUnknown}} |
Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Basic support | {{CompatChrome(50)}} | {{CompatChrome(38)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatOperaMobile(37)}} | {{CompatUnknown}} |
Available in workers | {{CompatChrome(50)}} | {{CompatChrome(38)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatOperaMobile(37)}} | {{CompatUnknown}} |