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 !!!