我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。
The enabled
handler is executed when Wifi is enabled on the device.
General info
- Specification
- Wifi (Firefox OS specific) and WifiDirect (Firefox OS specific)
- Interface
Event
- Bubbles
- No
- Cancelable
- No
- Target
WifiManager
andMozWifiP2pManager
- Default Action
- None
Properties
Unknown
Example
navigator.mozWifiManager.onenabled = function() { console.log( "Wifi has been enabled" ); };