Marketplace feature removal
The functionality described on this page no longer works — Firefox Marketplace has discontinued support for Android, Desktop, Tablets, and payments (and other related functionality). For more information, read the
Future of Marketplace FAQ
.
setEnabled()
方法在
DOMApplicationsManager
interface sets an application to be enabled or disabled.
window.navigator.mozApps.mgmt.setEnabled(app, state)
app
DOMApplication
object representing the app you want to set enabled state for.
state
布尔
value that sets the enabled state of an installed app — can be
enabled
or
被禁用
.
enabled
is the default state.
void
Not currently part of an official specification.
Supported in Firefox OS 2.2.
Archive