表单数据重置。
<form> <!-- 点击重置按钮,用户在表单输入的数据都会被清空 --> <!-- reset value的值是重置按钮的名称,默认是 “重置” --> <input type="text" /> <input type="reset" value="重置" /> </form>
控件效果