只要把type设置为reset即可,不需要设置click事件来清空每个输入框内容。 <button type="reset" >重置</button> 或 <input type="reset" value="重置" /> 相关文章: