input name 與 input type 有什么區別
?<input name="button" type="button" onClick="rec()" value="點擊我,彈出對話框" />
?<input type="button" ?value=" 按鈕上的文字" onclick=" 你設置的函數名 ? " />
?input name 與 input type 有什么區別?
? ?
?<input name="button" type="button" onClick="rec()" value="點擊我,彈出對話框" />
?<input type="button" ?value=" 按鈕上的文字" onclick=" 你設置的函數名 ? " />
?input name 與 input type 有什么區別?
? ?
2017-07-05
舉報
2017-07-05
name就是給這個東西取個名字,方便之后用的時候找到它,你自己定義記得住就好。
type就是元素類型,這個是已經有的東西,你只需要寫出來PC知道你需要什么類型的元素就行,具體有什么元素類型這個可以去看看手冊里很清楚的。
2017-07-06
name是自定義元素,一般用作與數據庫綁定,就是給這個按鈕取個名字以后好找。type是元素類型,說明這個input是按鈕還是單選框還是文本框等。。。
2017-07-05
name為自定義元素名稱,type為元素類型
2017-07-05
name為自定義元素名稱,type為元素類型,如text,checkbox,password等。詳細參考:http://www.w3school.com.cn/tags/att_input_type.asp? ? ? ?http://www.w3school.com.cn/tags/att_input_name.asp