This API is available on Firefox OS for internal applications 仅。
connected
is a read-only property that indicates whether the connection is ready (
true
) 或不 (
false
).
var dataConnection = navigator.mozMobileConnection.data.connected; var voiceConnection = navigator.mozMobileConnection.voice.connected;
Return a boolean.
Not part of any specification.
Archive
CFStateChangeEvent
DataErrorEvent
IccCardLockError
IccCardLockErrorEvent
MozCellBroadcastEvent
MozEmergencyCbModeEvent
MozIccManager
MozMobileCFInfo
MozMobileCellInfo
MozMobileConnection
MozMobileConnectionInfo
MozMobileICCInfo
MozMobileNetworkInfo
MozOtaStatusEvent
MozStkCommandEvent
USSDReceivedEvent