aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/event/createevent/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/event/createevent/index.html')
-rw-r--r--files/zh-cn/web/api/event/createevent/index.html35
1 files changed, 0 insertions, 35 deletions
diff --git a/files/zh-cn/web/api/event/createevent/index.html b/files/zh-cn/web/api/event/createevent/index.html
deleted file mode 100644
index 8b9c249c71..0000000000
--- a/files/zh-cn/web/api/event/createevent/index.html
+++ /dev/null
@@ -1,35 +0,0 @@
----
-title: Event.createEvent()
-slug: Web/API/Event/createEvent
-tags:
- - DOM
- - Event
- - JavaScript
- - Method
-translation_of: Web/API/Document/createEvent
-translation_of_original: Web/API/Event/createEvent
----
-<p>{{APIRef("DOM")}}</p>
-
-<p>创建一个新的事件(Event),随之必须调用自身的 init 方法进行初始化。</p>
-
-<h3 id="语法">语法</h3>
-
-<pre><code>document.createEvent(type) </code></pre>
-
-<dl>
- <dt><code>type</code></dt>
- <dd>指明待创建事件对象的类型的字符串</dd>
-</dl>
-
-<p>此方法返回一个新的特定类型的 DOM {{ domxref("Event") }} 对象,此对象在使用前必须经过初始化(init)。</p>
-
-<h3 id="示例">示例</h3>
-
-<pre>var newEvent = document.createEvent("UIEvents");</pre>
-
-<h3 id="规范">规范</h3>
-
-<ul>
- <li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-document" title="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-document">DOM Level 2 Events</a></li>
-</ul>