jquery binding Thing Processor

Source: Internet
Author: User

Binding and removal
1. Bind () Binding events can have 2 or 3 parameters: The first argument is the event type the second argument is the handler function the third is a Boolean type on () event instead
2. Delegate () event delegate, three parameters, first selector second for event type the third for the handler function on () event instead of a
3,. on () can replace the above two use, instead of bind using the same as the bind usage, in lieu of delegate, the parameter order is different
4,. off () with on () to remove the event, when the removal of an event is specified to remove only this event, when no parameters remove all events
5. One () adds a handler for the event of the element, which executes at most one time on each function and is generally used as a boot page because the boot page executes only once
6. Unbind () to remove the corresponding event
7. Undelegate () to remove the corresponding event

It is now common to use on () to bind events

jquery binding Thing Processor

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.