html網(wǎng)頁(yè)制作的基本步驟 js設(shè)置input的值?
js設(shè)置input的值?&Ltinput type=“text”value=“”id=“foo”>JS文檔.getElementById(“foo”)。Value=“Value”jQuery寫(xiě)入:
js設(shè)置input的值?
&Ltinput type=“text”value=“”id=“foo”>
JS文檔.getElementById(“foo”)。Value=“Value”
jQuery寫(xiě)入:$(“foo”)。屬性(“value”,“value”)