1. Empty the input label is worth the time, can not use HTML ("") empty, to use Val ("") empty
2. If the event is bound multiple times, the callback function is executed several times after the event is triggered, all the best to write the function of the binding event individually, or when the binding must be repeated, each time it is untied
3.jquery Selector If you are returning an array of jquery objects, you can use each to do so, or if you are working directly on the array, you may be manipulating only the first object of the group, not the traversal
4. Case sensitive, for example if it is written as if. ToString () was written in ToString (), touppercase written in toUpperCase
5.document.getelementbyid (""), the arguments in parentheses remember to quote
6.setTimeout ("function", delay time); function quotes
7. The traversal of an array is best done through a for loop, not through for. In is much less efficient than for. At the same time there is a certain performance overhead when calling the array length property, so it is best to assign the length property of the array to a variable to improve performance.
8. With regard to functions, this is the most important object in JavaScript, and we can pass it as a parameter. The simplest thing here is settimeout, the parameter of this function call is actually a function.
9. Order of execution of procedures:
Program execution, from top to bottom, if you encounter alert, the browser stops there and does not continue until you click OK. If the script statement is inside the head, alert is the whole thing, it will be displayed first and then the contents of the body are loaded. And if alert is inside the function, alert will work only if you call the function.