diff options
Diffstat (limited to 'files/zh-cn/web/api/htmlmediaelement/pause')
-rw-r--r-- | files/zh-cn/web/api/htmlmediaelement/pause/index.html | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/htmlmediaelement/pause/index.html b/files/zh-cn/web/api/htmlmediaelement/pause/index.html new file mode 100644 index 0000000000..75953aa012 --- /dev/null +++ b/files/zh-cn/web/api/htmlmediaelement/pause/index.html @@ -0,0 +1,56 @@ +--- +title: HTMLMediaElement.pause() +slug: Web/API/HTMLMediaElement/pause +tags: + - 媒体 + - 视频 + - 音频 +translation_of: Web/API/HTMLMediaElement/pause +--- +<p>{{APIRef("HTML DOM")}}</p> + +<p><strong><code>HTMLMediaElement.pause()</code></strong> 方法可用来暂停媒体的播放,如果媒体已经处于暂停状态,该方法没有效果.</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox notranslate"><em>HTMLMediaElement</em>.pause()</pre> + +<h3 id="参数">参数</h3> + +<p>无.</p> + +<h3 id="返回值">返回值</h3> + +<p>无.</p> + +<h3 id="异常">异常</h3> + +<p>无.</p> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th>Specification</th> + <th>Status</th> + <th>Comment</th> + </tr> + <tr> + <td>{{SpecName('HTML WHATWG', 'embedded-content.html#dom-media-pause', 'pause()')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>Initial definition; living specification.</td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C','embedded-content-0.html#dom-media-pause','pause()')}}</td> + <td>{{Spec2('HTML5 W3C')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div class="hidden">本页面的兼容性表格是通过结构化数据生成的.如果你也想提交贡献, 请访问<a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> 并给我们发送合并请求(PR).</div> + +<p>{{Compat("api.HTMLMediaElement.pause")}}</p> |