UIEvent.detail
UIEvent.detail
是只读属性,当值为非空的时候,提供当前点击数 (和环境有关) 。
对 click
或者 dblclick
事件,UIEvent.detail
是当前点击数量。
对 mousedown
或者 mouseup
事件,UIEvent.detail
是 1 加上当前点击数。
对所有的其他UIEvent
对象,UIEvent.detail
总是零。
Specifications
Specification |
---|
UI Events # dom-uievent-detail |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
detail |
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.