- The jquery selector, $ ("Div#ids") selects all id=ids elements that are labeled Div, while $ ("#ids") selects the first element of the id=ids that is encountered. Choose a different selector may cause you unexpected bug, and difficult to find, such as jQueryUI pop-up window, your page has two of the same ID div, you choose the first way to pop up two windows, and the second will only pop the first one.
- JS code too many can use the introduction of namespaces to avoid duplication, specifically, the use of $, the principle is not understood, it may be similar to C # namespace bar, first written in this.
- When writing a module, the process is first drawn on paper, recursively differentiated into smaller, directly-capable modules, and then the pseudo-code is implemented one step at a time.
"Summary" of the key issues encountered, the discovery of flexible skills ~ long-term update