在新表單模塊中(> = RC.5) NgForm 有一個 reset() 方法,還支持表格 reset 事件。 ... resetForm(form: FormGroup) { form.reset(); Object.keys(form.controls).
確定! 回上一頁