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/documenttouch/index.html | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 files/zh-cn/web/api/documenttouch/index.html (limited to 'files/zh-cn/web/api/documenttouch') diff --git a/files/zh-cn/web/api/documenttouch/index.html b/files/zh-cn/web/api/documenttouch/index.html new file mode 100644 index 0000000000..60b7ebb841 --- /dev/null +++ b/files/zh-cn/web/api/documenttouch/index.html @@ -0,0 +1,32 @@ +--- +title: DocumentTouch +slug: Web/API/DocumentTouch +translation_of: Web/API/DocumentTouch +--- +

{{ ApiRef("DOM") }}

+ +

{{ obsolete_header(25) }}

+ +

从Gecko 25 (Firefox 25 / Thunderbird 25 / SeaMonkey 2.22)开始被废弃

+ +

本特性已经被废弃,虽然它仍然可以在一些浏览器中工作,它随时都可能被移除,我们不鼓励使用它,你应尽量避免使用它。

+ +

DocumentTouch 接口提供了一个便利的方法来创建 {{ domxref("Touch") }} 和 {{ domxref("TouchList") }} 对象, 可是它将被移除。 但这个方法将会继续在{{domxref("Document")}} 接口中存在.

+ +

方法

+ +
+
{{ domxref("DocumentTouch.createTouch()") }}
+
创建一个新的 {{ domxref("Touch") }} 对象.
+
{{ domxref("DocumentTouch.createTouchList()") }}
+
创建一个新的 {{ domxref("TouchList") }} 对象.
+
+ +

更多

+ + -- cgit v1.2.3-54-g00ecf