UIEvent.detail是只读属性, 当值为非空的时候, 提供当前点击数(和环境有关) 。

click 或者 dblclick 事件, UIEvent.detail 是当前点击数量。

mousedown 或者 mouseup 事件, UIEvent.detail是1加上当前点击数。

对所有的其它UIEvent 对象, UIEvent.detail 总是零.


Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support ? ? ? ? ?
Feature Firefox Mobile (Gecko) Android IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ?