Background: The project used in bootstrap-table plugin, you need to realize search function;
Problem Description: Click the Search button to realize normal search function, then, when binding Enter event search, all the data has been loaded, and the input is cleared;
figure 1
figure 2
Resolution process: Start always thought bootstrap-table input plug to bind the Enter event and emptied input, looking for a long time did not find the corresponding plug-in Enter event, and later found to input a carriage return when the page is refreshed, only to find root of the problem, remove the form tag is resolved.