"Summary" of the key issues encountered, the discovery of flexible skills ~ long-term update

Source: Internet
Author: User
  1. 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.
  2. 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.
  3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.