例:
上述範例的 codepen 網址: https://codepen.io/carlos411/pen/vYOmaoEarrow-up-right
參考:HTML Input Typesarrow-up-right。
建立 form_get_post.html,測試 GET 與 POST:https://codepen.io/carlos411/pen/RwzwayGarrow-up-right
form_get_post.html
建立 form_file_post.html , 測試檔案的 POST:https://codepen.io/carlos411/pen/zYVYqjQarrow-up-right
form_file_post.html
其中 readonly 、disabled 需要特別留意,加上 disabled 屬性的欄位,在表單送出資料的時候,並不會送出資料。如果要送出資料,可以使用 readonly 屬性。
readonly
disabled
參考:HTML Input Attributesarrow-up-right。
Last updated 1 year ago