We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS


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

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

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

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


Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
Document Object Model (DOM) Level 2 Events Specification
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!

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


此页面的贡献者: guoyang
最后编辑者: guoyang,