My purpose is to reset the value in the input box to the legal value under the condition of illegal value input by the user. Using the following method, although the value attribute of the Input element has been modified, the value in the Input display box has not been updated. What should I do?
The difference between prop and attr
The difference between Attribute and Property