此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

UIEvent.detail

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

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

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

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