學習筆記:javascript 表單對象(form)

來源:互聯網
上載者:User

標籤:title   _for   classname   名稱   class   action   Enctype   com   素數   

Form 對象屬性
屬性 描述
acceptCharset 伺服器可接受的字元集。
action 設定或返回表單的 action 屬性。
enctype 設定或返回表單用來編碼內容的 MIME 類型。
id 設定或返回表單的 id。
length 返回表單中的元素數目。
method 設定或返回將資料發送到伺服器的 HTTP 方法。
name 設定或返回表單的名稱。
target 設定或返回表單提交結果的 Frame 或 Window 名。
標準屬性
屬性 描述
className 設定或返回元素的 class 屬性。
dir 設定或返迴文本的方向。
lang 設定或返回元素的語言代碼。
title 設定或返回元素的 title 屬性。
Form 對象方法
方法 描述
reset() 把表單的所有輸入元素重設為它們的預設值。
submit() 提交表單。

學習筆記:javascript 表單對象(form)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.