learnInfoForm.value.reset is not a function
时间: 2023-11-28 14:48:02 浏览: 60
The error "learnInfoForm.value.reset is not a function" occurs when you are trying to call the `reset` function on a value that is not a form element.
In this case, `learnInfoForm.value` is not a form element, but rather a property of the form element that holds the current values of the form inputs. Therefore, calling `reset` on it will result in an error.
To fix this error, you should call the `reset` function on the form element itself, like this:
```
learnInfoForm.reset();
```
This will reset all the form fields to their default values.
阅读全文