这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
effectiveType
只读特性在
NetworkInformation
interface returns the effective type of the connection meaning one of 'slow-2g', '2g', '3g', or '4g'. This value is determined using a combination of recently observed, round-trip time and downlink values.
var effectiveType = NetworkInformation.effectiveType
A
字符串
containing one of 'slow-2g', '2g', '3g', or '4g'.
| 规范 | 状态 | 注释 |
|---|---|---|
|
网络信息 API
The definition of 'effectiveType' in that specification. |
草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
effectiveType
|
Chrome 61 | Edge 79 | Firefox 不支持 No | IE 不支持 No | Opera 48 | Safari 不支持 No | WebView Android 50 | Chrome Android 38 | Firefox Android Yes | Opera Android 45 | Safari iOS 不支持 No | Samsung Internet Android 3.0 |
完整支持
不支持
实验。期望将来行为有所改变。
NetworkInformation