UIEvent.detail

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

click (en-US) 或者 dblclick (en-US) 事件, UIEvent.detail 是当前点击数量。

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

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

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
UIEvent.detail
Obsolete  
Document Object Model (DOM) Level 2 Events Specification
UIEvent.detail
Obsolete Initial definition.

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! (en-US)

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