此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

Window:captureEvents() 方法

Deprecated

Avoid using this feature in new projects. This feature may be a candidate for removal from web standards or browsers.

Window.captureEvents() 方法不执行任何操作。其原始行为已从规范中移除,但该方法本身被保留,以避免破坏调用它的代码。

语法

js
captureEvents()

参数

无。

返回值

无(undefined)。

规范

规范
HTML
# dom-window-captureevents

浏览器兼容性