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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
detail

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support