Enter the form of events

In the end did not do a before and after the separation of the project, I found a bug, join in the search form search conditions, press the search button function so that, but pressing the back shop, I noticed a bit reload the page, similar to the form of submission things like that, then I compared the other pages did not find anything unusual, it can be difficult to me, with another backend colleagues together to study the problem, comparing with normal page Yiziyizi, found the problem:
 the original other pages of this search form there are multiple search box, go to the official website w3c looked and found this sentence: when a form is only one input box when pressing the enter key will be the default form submission event, if it is more than a form of words will not be submitted to an event, so the solution is to organize a form of default submit event

Guess you like

Origin www.cnblogs.com/qq1170623178/p/11579139.html