Jquery 1.3

Source: Internet
Author: User
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

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.