. Live () and die () in jQuery,. livedie in jquery
Http://www.alfajango.com/blog/exploring-jquery-live-and-die/
Many developers know jQuery's. live () method. Most of them know what this function is doing, but they do not know how it is implemented,
Translated original address: http://www.alfajango.com/blog/exploring-jquery-live-and-die/Many developers know about JQuery's. Live () method, most of them know what the function does, but do not know how it is implemented, so it is not so
Many developers know jQuery's. live () method. Most of them know what this function is doing, but they do not know how it is implemented, so it is not so comfortable to use. They have never heard of the. die () method for unbinding. live () events.
Document directory
Index in the element: $ ("# More-Info "). index ("H3") New. the has () method (has document, commit) is equivalent to the has () filter in the selector. It obtains a jquery set and returns elements containing the specified
Http://www.alfajango.com/blog/exploring-jquery-live-and-die/
Many developers know jquery's. Live () method. Most of them know what this function is doing, but they do not know how it is implemented, so it is not so comfortable to use. They have
Http://www.alfajango.com/blog/exploring-jquery-live-and-die/
Many developers know jquery's. Live () method. Most of them know what this function is doing, but they do not know how it is implemented, so it is not so comfortable to use. They have
What is. Live ()The live method is similar to. bind (), which, in addition, allows you to bind events to DOM elements, and you can bind events to elements that do not yet exist in the DOM, and look at the following example:
For example, when the
What is. live (). The live method is similar. bind (). In addition, it allows you to bind events to DOM elements. You can bind events to elements that do not exist in the DOM. Take a look at the following example:
For example, when a user clicks a
Select-or-Die: flexible jQuery drop-down list plug-in, jquery drop-down plug-in
Select-or-Die isJQueryPlug-in. Use the Select element to customize the drop-down list. Native drop-down selection elements have many differences in the default style of
Die ()If you know. Bind (), then you must know. Unbind (). So,. Die () and. Live () are similar relationships. To get in touch with the above bindings (the pop-up dialog box does not want the user to click on the link), we do this:Copy code code as
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.