UIEvent.detail
read-only property, when non-zero, provides the current (or next, depending on the event) click count.
For
click
or
dblclick
events,
UIEvent.detail
is the current click count.
For
mousedown
or
mouseup
events,
UIEvent.detail
is
1 plus
the current click count.
对于所有其它
UIEvent
对象,
UIEvent.detail
is always zero.
| 规范 | 状态 | 注释 |
|---|---|---|
|
DOM (文档对象模型) 3 级事件规范
The definition of 'UIEvent.detail' in that specification. |
过时 | |
|
DOM (文档对象模型) 2 级事件规范
The definition of 'UIEvent.detail' in that specification. |
过时 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
detail
|
Chrome Yes | Edge 12 | Firefox Yes |
IE
部分支持
9
|
Opera Yes | Safari Yes | WebView Android Yes | Chrome Android Yes | Firefox Android Yes | Opera Android Yes | Safari iOS Yes | Samsung Internet Android Yes |
完整支持
部分支持
见实现注意事项。
UIEvent