form.reset
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
概述
reset
方法可以重置一个表单内的所有表单控件的值到初始状态。
语法
HTMLFormElement.reset()
例子
document.forms["myform"].reset();
备注
运行该方法和点击表单的重置按钮是一样的效果。