js-Authoritative Guide Study notes 19.2

Source: Internet
Author: User

1, jquery animation is asynchronous , will return immediately, but the animation will be executed in the background, you can pass in the function as the animation completion of the callback function.

2, jquery animation by default is queued .

3. TheStop () method accepts two optional Boolean parameters, and if the first parameter is true, the animation queue on the selected element is cleared : In addition to stopping the current animation, any animation waiting for execution is canceled, and the default value is False. The second parameter specifies whether CSS properties that are continuously changing retain the current value , or should change to the final target value, passing in true to allow them to change to the final value.

4. The Load () method of Ajax: If you want to display only a portion of the document that is being loaded, you can add a space after the URL and a jquery selector . When the URL is loaded, jquery uses the specified selector to select the part to display from the loaded HTML.

5,Jquery.browser. The browser property is not a function but an object that can be used for client sniffing. Similar to jquery.support.

6. TheJquery.each () tool function differs from the each () method in that the each() method can traverse only the JQuery object , and the tool function can traverse the array element or object properties.

7,Jquery.extend () The function accepts the object as an argument, it copies the properties of the second and later parameter objects into the first parameter object, overwriting it if the property with the same name already exists in the first parameter object. This function is useful for copying objects and merging option objects with several sets of default values.

8,: Nth-child (n) The number of the filter is starting from 1, even: the number of the odd is starting from 0.

9. jquery Plugin:Jquery.fn is the prototype object for all jquery objects . If you add a function to the object, the function becomes a jquery method.

js-Authoritative Guide Study notes 19.2

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.