Jquery 1.3 was officially released today after several beta tests. Compared with 1.2.6, it must have such updates.
English document: http://docs.jquery.com/Release:jQuery_1.3
1. More powerful selector.
The selector of jquery 1.3 is more robust, scalable, and completely independent (although scalability sacrifices some performance) than before. According to the official instructions of jquery, compared with the previous version, this version has improved the performance by 49%.
In addition, according to the official sayingCodeGiven sizzle, jquery works perfectly and harmoniously with other JS frameworks. (Haha, don't worry about conflict)
Ii. Live Events
The new JQ version can seamlessly bind an event to all later elements. In fact, the previous repeat binding problem, do you still remember the embarrassment of having to write onclick on bind or code when the elements after your append () cannot be used? Haha, live () goes viral, a top n!
For example, it was previously written in this way.
$ (Document). Ready (function (){
$ ("P"). BIND ("click", addf );
Function addf (){
$ (This). append ("<p> Hello </P> ");
}
});
Now we can write it like this.
$ (Document). Ready (function (){
$ ("P"). Live ("click", function (){
$ (This). append ("<p> Hello </P> ");
});
});
For more information about live and die, see the following two links:
Live: http://docs.jquery.com/Events/live
Die: http://docs.jquery.com/Events/die
Of course, JQ certainly won't forget to mention our performance improvement (haha)
Iii. event object
It mainly makes a standard object according to W3C specifications. Of course, there have been some changes.
Iv. Improved injection efficiency
The insert efficiency has been improved. It seems that we will be able to append and other things more quickly in the future.
5. Overwrite offset ()
According to the official saying, cross-browser is better and faster.
6. browser listening canceled
Change to jquery. support. For more information, see "change "..
By the way, JQ is now compressed with Yui, which is better than Yui.
Download link: http://code.google.com/p/jqueryjs/downloads/detail? Name = jquery-1.3.min.js & downloadbtn = % 3 cspan % 3 edownload % 3C % 2 fspan % 3E
English document: http://docs.jquery.com/Release:jQuery_1.3