--- title: NetworkInformation slug: Web/API/NetworkInformation translation_of: Web/API/NetworkInformation ---
NetworkInformation
提供有关设备正在使用的连接与网络进行通信的信息,并提供了在连接类型更改时通知脚本的事件。NetworkInformation
接口不能被是实例化, 而是通过 {{domxref("Navigator")}} 的 connection
属性进行访问。
{{AvailableInWorkers}}
这些属性接口继承自 {{domxref("EventTarget")}}.
bluetooth
cellular
ethernet
none
wifi
wimax
other
unknown
这些属性接口同样继承自 {{domxref("EventTarget")}}.
Specification | Status | Comment |
---|---|---|
{{SpecName('Network Information', '#idl-def-NetworkInformation', 'NetworkInformation')}} | {{Spec2('Network Information')}} | Initial definition |