blob: ef493fef64fb0d706f4cbdb17c7d500924c2b1ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
---
title: 'Document: touchstart 事件'
slug: Web/API/Document/touchstart_event
tags:
- Document
- Event
- TouchEvent
- Web
- touchstart
- 参考
translation_of: Web/API/Document/touchstart_event
---
<div>{{APIRef}}</div>
<p><span class="seoSummary">当一个或多个触摸点与触控设备表面接触时触发<code>touchstart</code> 事件。</span></p>
<table class="properties">
<tbody>
<tr>
<th scope="row">Bubbles</th>
<td>Yes</td>
</tr>
<tr>
<th scope="row">Cancelable</th>
<td>Yes</td>
</tr>
<tr>
<th scope="row">Interface</th>
<td>{{domxref("TouchEvent")}}</td>
</tr>
<tr>
<th scope="row">Event handler property</th>
<td>{{ domxref("GlobalEventHandlers.ontouchstart","ontouchstart")}}</td>
</tr>
</tbody>
</table>
<h2 id="示例">示例</h2>
<p>这些时间的代码样例可在这个专用页面查看:<a href="/en-US/docs/Web/API/Touch_events">Touch events</a>.</p>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">规范</th>
<th scope="col">状态</th>
</tr>
<tr>
<td>{{SpecName('Touch Events', '#event-touchstart')}}</td>
<td>{{Spec2('Touch Events')}}</td>
</tr>
</tbody>
</table>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
<p>{{Compat("api.Document.touchstart_event")}}</p>
<h2 id="参见">参见</h2>
<ul>
<li><a href="/en-US/docs/Web/API/Touch_events">Touch events</a></li>
<li>{{ domxref("GlobalEventHandlers.ontouchstart","ontouchstart")}}</li>
<li>以 <code><a href="/en-US/docs/Web/API/Element">Element</a></code> 为目标的相同时间:<code><a href="/en-US/docs/Web/API/Element/touchstart_event">touchstart</a></code></li>
</ul>
|