HTMLMediaElement.pause()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
HTMLMediaElement.pause()
方法可用来暂停媒体的播放,如果媒体已经处于暂停状态,该方法没有效果。
语法
HTMLMediaElement.pause()
参数
无。
返回值
无。
异常
无。
Specifications
Specification |
---|
HTML # dom-media-pause-dev |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
pause |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.