From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/uievent/detail/index.html | 86 +++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 files/zh-cn/web/api/uievent/detail/index.html (limited to 'files/zh-cn/web/api/uievent/detail') diff --git a/files/zh-cn/web/api/uievent/detail/index.html b/files/zh-cn/web/api/uievent/detail/index.html new file mode 100644 index 0000000000..277f89be04 --- /dev/null +++ b/files/zh-cn/web/api/uievent/detail/index.html @@ -0,0 +1,86 @@ +--- +title: UIEvent.detail +slug: Web/API/UIEvent/detail +translation_of: Web/API/UIEvent/detail +--- +

{{APIRef("DOM Events")}}

+ +

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

+ +

对 {{event("click")}} 或者 {{event("dblclick")}} 事件, UIEvent.detail 是当前点击数量。

+ +

对 {{event("mousedown")}} 或者 {{event("mouseup")}} 事件, UIEvent.detail是1加上当前点击数。

+ +

对所有的其它{{domxref("UIEvent")}} 对象, UIEvent.detail 总是零.

+ +

Specifications

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('DOM3 Events','#widl-UIEvent-detail','UIEvent.detail')}}{{Spec2('DOM3 Events')}} 
{{SpecName('DOM2 Events','#Events-UIEvent-detail','UIEvent.detail')}}{{Spec2('DOM2 Events')}}Initial definition.
+ +

Browser compatibility

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureFirefox (Gecko)ChromeInternet ExplorerOperaSafari
Basic support{{CompatUnknown()}}{{CompatUnknown()}}{{CompatUnknown()}}{{CompatUnknown()}}{{CompatUnknown()}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureFirefox Mobile (Gecko)AndroidIE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
+
-- cgit v1.2.3-54-g00ecf