diff options
Diffstat (limited to 'files/zh-cn/web/api/window/updatecommands/index.html')
| -rw-r--r-- | files/zh-cn/web/api/window/updatecommands/index.html | 37 |
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> |
