1.
form中定义name
<form name = "sbform" action="sb_add.php" method="post">
用Reset清空
<input type="button" value="清空" οnclick="sbform.reset()" />
2.重加载
<input type="button" value="清空" windows.location.href='index.php' />
1.
form中定义name
<form name = "sbform" action="sb_add.php" method="post">
用Reset清空
<input type="button" value="清空" οnclick="sbform.reset()" />
2.重加载
<input type="button" value="清空" windows.location.href='index.php' />
转载于:https://www.cnblogs.com/tmdsleep/p/4601513.html