1.type="reset" 重置表单
<form>
<input type="text" value="adf">
<button type="reset" >重置</button>
<form>
2.保留默认值adf
<form>
<input type="text" id="attribute" value="adf">
<button type="button" class="reset" >重置</button>
<form>
<script>
$(".reset").click(function(){
var attribute = document.getElementById("attribute");
attribute.defaultValue = attribute.value;
alert(attribute.defaultValue);
$("#appForm")[0].reset();
})
</script>