日期:2014-05-18  浏览次数:20619 次

在更改资料的时候,我设了个按钮时“重新填写”(晴空所填写的信息),这个按钮是怎么实现的
如题

------解决方案--------------------
<input type="reset">
------解决方案--------------------
<input type="reset" value="清空">
------解决方案--------------------
<s:reset>清空<s:reset/>----直接用標簽
==========================
function reset(arg1,arg2,xxx){
arg1=document.getelementby(xxx);
arg2=${xxxform.xxx};
arg3=document.forms[0].xxx.value;
xxxx
arg1 = null;
xxxx
}----------js實現
==========================
public void Reset(){
xxform.setxxx(null);
return
}--------------java的action里面實現

還有很多方法就不一一列舉了,因為我也記不住#&¥(……@#(……¥(@
------解决方案--------------------
连 form 都没有? 算表单么??
------解决方案--------------------
<form action="aaa.jsp" method="post">
<input type="text" name="aname">
<input type="submit" value="提交">
<input type="reset" value="重置">
</form>


//PS:<input type="submit">和:<input type="reset">只有在<form> - </form>才能起作用
------解决方案--------------------
<input type="reset" value="清空">