From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../zh-cn/web/api/window/updatecommands/index.html | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 files/zh-cn/web/api/window/updatecommands/index.html (limited to 'files/zh-cn/web/api/window/updatecommands') diff --git a/files/zh-cn/web/api/window/updatecommands/index.html b/files/zh-cn/web/api/window/updatecommands/index.html new file mode 100644 index 0000000000..29eaef7dbf --- /dev/null +++ b/files/zh-cn/web/api/window/updatecommands/index.html @@ -0,0 +1,37 @@ +--- +title: Window.updateCommands() +slug: Web/API/Window/updateCommands +tags: + - chrome窗口(UI)的命令状态。 +translation_of: Web/API/Window/updateCommands +--- +

{{ ApiRef() }}{{Non-standard_header}}

+ +

概要

+ +

更新当前chrome窗口(UI)的命令状态。

+ +

语法

+ +
window.updateCommands("sCommandName")
+
+ +

 参数

+ + + +

记录

+ +

这将启用或禁用项目(根据需要在命令节点上设置或清除“disabled”属性),或通过在XUL命令节点的“state”属性中设置当前状态信息来确保命令状态反映选择的状态。

+ +

规范

+ +

DOM 0 级。不属于规范。

+ +

浏览器兼容性

+ + + +

{{Compat("api.Window.updateCommands")}}

-- cgit v1.2.3-54-g00ecf