[Step] Use recording pit reset form label () method of error cause and treatment

 

 

If you include the id of the element reset in the form of labels, in the form of calling reset () method, it will be reported xxx.reset is not a function, due to reset in the form of call () method, and did not go to form the prototype find the reset () method, but by form.reset () to find the id within the form tag contains an element reset, and this element is just a dom, is not a function, it will be reported xxx.reset is not a function.

 

Processing Method: Avoid comprising in the range of form tag name to the reset element id

Guess you like

Origin www.cnblogs.com/web-xu/p/11606419.html