input標(biāo)簽?zāi)J(rèn)值 input輸入框怎么寫入默認(rèn)值?
input輸入框怎么寫入默認(rèn)值?JS method1<input type=“text”value=“請輸入內(nèi)容”onfocus=“J腳本:如果( this.value==“請輸入內(nèi)容”)此.va
input輸入框怎么寫入默認(rèn)值?
JS method
1
<input type=“text”value=“請輸入內(nèi)容”onfocus=“J腳本:如果( this.value==“請輸入內(nèi)容”)此.value=“”“onblur=”j腳本:如果( this.value=="") 此.value=“請輸入內(nèi)容”“>
HTML5
1
<輸入類型=”文本“占位符=”請輸入內(nèi)容“/>