composedPath()事件方法
实例
What is the event flow of the current event:
function func1(event) {
alert(event.composedPath());
}
亲自试一试 »
定义和用法
composedPath() 方法以正确的执行顺序返回包含事件流中元素的对象数组。
浏览器支持
表中的数字表示完全支持该方法的第一个浏览器版本。
| 方法 | |||||
|---|---|---|---|---|---|
| composedPath() | 53 | 不支持 | 52 | Yes | Yes |
语法
event.composedPath()
参数
| None |
技术细节
| 返回值: | HTML 元素数组 |
|---|

