diff options
Diffstat (limited to 'files/zh-cn/web/api/htmlformelement/reset_event')
-rw-r--r-- | files/zh-cn/web/api/htmlformelement/reset_event/index.html | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/htmlformelement/reset_event/index.html b/files/zh-cn/web/api/htmlformelement/reset_event/index.html new file mode 100644 index 0000000000..bc9c2c01b5 --- /dev/null +++ b/files/zh-cn/web/api/htmlformelement/reset_event/index.html @@ -0,0 +1,57 @@ +--- +title: reset +slug: Web/API/HTMLFormElement/reset_event +translation_of: Web/API/HTMLFormElement/reset_event +--- +<p>当表单被重置时触发<code>reset</code>事件。</p> + +<h2 id="综合信息">综合信息</h2> + +<dl> + <dt style="float: left; text-align: right; width: 120px;">Specification</dt> + <dd style="margin: 0 0 0 120px;"><a class="external" href="https://html.spec.whatwg.org/multipage/indices.html#event-reset">HTML5</a></dd> + <dt style="float: left; text-align: right; width: 120px;">Interface</dt> + <dd style="margin: 0 0 0 120px;">{{domxref("Event")}}</dd> + <dt style="float: left; text-align: right; width: 120px;">Bubbles</dt> + <dd style="margin: 0 0 0 120px;">是(可以指定不发生冒泡的简单事件)</dd> + <dt style="float: left; text-align: right; width: 120px;">Cancelable</dt> + <dd style="margin: 0 0 0 120px;">是</dd> + <dt style="float: left; text-align: right; width: 120px;">Target</dt> + <dd style="margin: 0 0 0 120px;">Element</dd> + <dt style="float: left; text-align: right; width: 120px;">默认行为</dt> + <dd style="margin: 0 0 0 120px;">重置父表单元素所有的值。</dd> +</dl> + +<h2 id="属性">属性</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Property</th> + <th scope="col">Type</th> + <th scope="col">Description</th> + </tr> + </thead> + <tbody> + <tr> + <td><code>target</code> {{readonlyInline}}</td> + <td>{{domxref("EventTarget")}}</td> + <td>事件的目标(DOM树最顶端的元素)。</td> + </tr> + <tr> + <td><code>type</code> {{readonlyInline}}</td> + <td>{{domxref("DOMString")}}</td> + <td>事件的类型。</td> + </tr> + <tr> + <td><code>bubbles</code> {{readonlyInline}}</td> + <td>{{jsxref("Boolean")}}</td> + <td>是否指定事件冒泡。</td> + </tr> + <tr> + <td><code>cancelable</code> {{readonlyInline}}</td> + <td>{{jsxref("Boolean")}}</td> + <td>事件是否可以被取消。</td> + </tr> + </tbody> +</table> |