aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/window/updatecommands
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/window/updatecommands
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/window/updatecommands')
-rw-r--r--files/zh-cn/web/api/window/updatecommands/index.html37
1 files changed, 37 insertions, 0 deletions
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
+---
+<p>{{ ApiRef() }}{{Non-standard_header}}</p>
+
+<h2 id="Summary" name="Summary">概要</h2>
+
+<p>更新当前chrome窗口(UI)的命令状态。</p>
+
+<h2 id="Syntax" name="Syntax">语法</h2>
+
+<pre class="eval">window.updateCommands("sCommandName")
+</pre>
+
+<h2 id="Parameters" name="Parameters"> 参数</h2>
+
+<ul>
+ <li><code>sCommandName</code> 是一个特定的字符串,它描述了这种更新事件的类型 (我们用到了背景色注明).</li>
+</ul>
+
+<h2 id="Notes" name="Notes">记录</h2>
+
+<p>这将启用或禁用项目(根据需要在命令节点上设置或清除“disabled”属性),或通过在XUL命令节点的“state”属性中设置当前状态信息来确保命令状态反映选择的状态。</p>
+
+<h2 id="Specification" name="Specification">规范</h2>
+
+<p>DOM 0 级。不属于规范。</p>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("api.Window.updateCommands")}}</p>