diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/htmlformelement/reset/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/htmlformelement/reset/index.html')
-rw-r--r-- | files/zh-cn/web/api/htmlformelement/reset/index.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/htmlformelement/reset/index.html b/files/zh-cn/web/api/htmlformelement/reset/index.html new file mode 100644 index 0000000000..6cbcf70c61 --- /dev/null +++ b/files/zh-cn/web/api/htmlformelement/reset/index.html @@ -0,0 +1,19 @@ +--- +title: form.reset +slug: Web/API/HTMLFormElement/reset +translation_of: Web/API/HTMLFormElement/reset +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">概述</h3> +<p><code>reset</code> 方法可以重置一个表单内的所有表单控件的值到初始状态.</p> +<h3 id="Syntax" name="Syntax">语法</h3> +<pre class="eval"><em>HTMLFormElement</em>.reset() +</pre> +<h3 id="Example" name="Example">例子</h3> +<pre class="eval">document.forms["myform"].reset(); +</pre> +<h3 id="Notes" name="Notes">备注</h3> +<p>运行该方法和点击表单的重置按钮是一样的效果.</p> +<h3 id="Specification" name="Specification">规范</h3> +<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-76767677">DOM Level 2 HTML: reset</a></p> +<p>{{ languages( {"pl": "pl/DOM/form.reset" ,"en": "en/DOM/form.reset" } ) }}</p> |