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
A DOMApplication object representing the app you want to set enabled state for.
state
A 布尔 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.

另请参阅

元数据

  • 最后修改: