Jquery live query plug-in

Source: Internet
Author: User

There is actually a simpler solution to the problem written in the previous log, that is, using the jquery live query plug-in. Some plug-ins on the Internet use this plug-in, it will re-bind an event to the elements in the DOM every 20 milliseconds. It was known for a long time, but it never knows the specific usage. Live query was also used to solve the problem a few days ago, but not yet .. Sweat...

I continued searching online today and finally found another method on a website: http://brandondomainon.net/docs/livequery/to solve the problem.

Method 1 (this test fails ):

$ ('A ')
. Livequery ('click', function (event ){
Alert ('clicked ');
Return false;
});

 

Method 2 (TestPass):

$ ('Lil ')
. Livequery (function (){
// Use the Helper function hover to bind a Mouseover and mouseout event
$ (This)
. Hover (function (){
$ (This). addclass ('hover ');
}, Function (){
$ (This). removeclass ('hover ');
});
}, Function (){
// Unbind the Mouseover and mouseout events
$ (This)
. Unbind ('mouseover ')
. Unbind ('mouseout ');
});

 

The brandondomainon.net website looks like a JQ plug-in Index Website. There are a lot of plug-ins in it. The webmaster is a good guy!

Currently, the jquery team has major developers, promotion staff, UI, plug-in development, and website design and maintenance. Three of them are: two Americans, johnresig/Brandonaaron, A German jornzaefferer)

I just found it online .. OriginalBrandonaaronAs the main developer of JQ, pay tribute !!!

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.