JQuery 2.0 released, no longer supported IE6/7/8

Source: Internet
Author: User
Tags deprecated jquery library

Sometimes it is found that the jquery library references are all right, JavaScript code is not a problem, but jquery is the problem, the amount ... I find it's no problem to change a jquery library, and I don't care about jquery for a long time.

Many people do not use the latest jquery library, resulting in a sudden change to 2.0 version, there are some issues of no concern!

About jquery 2.0 no longer supports the IE6/7/8 three version, I think, using jquery1.9 version, (I test jquery1.11 version is support ie8,2.0 version is not supported! )。
Later abandoned IE8, I think that time, our world is also very good, at least the internet world will be very good, Microsoft has been unknowingly abandoned Windows 7, a lot of front-end technology is also beginning to slowly discard the browser does not support CSS3 technology, In addition to the HTML5 and CSS3 technology of our attraction and the needs of the industry, so, IE8 left our era is not far away.

----------------------------------------------------------------?---------------------------------------------- ---------------------------

The differences between the versions of JQuery 1.9 and jquery 2.0 are as follows:

    • JQuery 1.9 and 2.0 have the same API. Some deprecated features, such as $.browser, have been removed in these two versions. See jquery 1.9 Upgrade Guide
    • JQuery 1.9 can be run on the old version of IE (ie 6/7/8), which is the same as the previous version. This version of the API is more concise, lighter, and more modern than jquery 1.8.
    • jquery 2.0 will not run on the older version of IE, which is smaller and faster than jquery 1.9 due to the reduced number of code.
The jquery development team says it will support jquery 1.9 and 2.0 two versions in the future, and you can choose according to your needs.
The jquery development team also released the jquery Migration plug-in 1.0 release to help detect deprecated and deleted features in the new version, and to recover these features if necessary.
    • jquery 1.9.0.js
    • jquery 2.0.0 Beta1.js
    • jquery Migrate 1.0.0.js < Finally, it is important to note that you can use the plugin to restore jquery to any version of jquery 1.6.4 after the functionality . >

---------------------------------------------------------------?----------------------------------------------- ------------------------

The main content of this article is: http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/: no specific translation, Lists some important points to note:

jquery 1.9 has previously been the last version to support IE6/7/8 (Oldie), which now seems to be a done deal, JQuery 2.0 (Note: Now beta version), will only support IE + + and other HTML5 browser. In the IE6/7/8 occupies an absolute proportion of the country, although a little lost, but fortunately, the high-level browser share is gradually rising.

JQuery 1.9 Adds something new, like the CSS3 selector, and more to note is that she removed some previously flagged APIs or changed many of the original APIs, which could cause existing code to be incompatible after the upgrade. Fortunately, the jquery team also provides migrate (migration) plug-ins to detect deprecated and deleted APIs, or to restore the original functionality, which is compatible with most APIs so that most of the original programs continue to work properly. But if you really want to upgrade or change the original code earlier!

The 1.9 and 2.0 positioning of jquery:

jquery 1.9 and 2.0 API are basically the same, so my Chinese document is also shamelessly hit the "Applicable jquery 1.9–jquery 2.0", the main difference is that jQuery 1.9 still supports IE 6/7/8.

jquery 2.0 does not support IE 6/7/8, only support IE + + and other HTML5 browser, does not support IE 6/7/8 after the jquery volume is small, the execution speed is faster.

Since jquery 1.9 has officially removed many APIs that were previously marked as obsolete (deprecated), if you currently have a program that avoids outdated APIs, Upgrading to 1.9 is not a big problem, it is estimated that most of the hard-pressed programmers write code must be more or less using the old API, regardless of which version of jquery you use, we recommend that you always first refer to the Migrate (migration) plug-in. It collects 1.6.4 since it exists but 1.9 does not support the old API, open the browser's console, you can see what warnings or errors (through Console.log) are generated, the plugin's warning starts with "jqmigrate". Can be used as a reference for the modification of the original code. (Note: Using the jquery migrate compact version (Jquery-migrate-1.0.0.min.js) only provides compatibility features without generating warning messages, to use the development version of the uncompressed Jquery-migrate-1.0.0.js, To display a warning message in the console, detailed incompatible information and a workaround to view the official documentation).

New features in 1.9:

Simplified API:

Many of the features that were previously marked obsolete have been removed and can be viewed in the jquery 1.9 Upgrade guide.

New multiple CSS Property picker:

: Now you can pass an array of CSS property names to the. css () method and it returns a normal object with the current value of the CSS property:

You can view the http://www.css88.com/jqapi-1.9/css/in the jquery 1.9 API Chinese Document

var dims = $ ("#box"). CSS (["width", "height", "backgroundcolor"]);//object returned: {width: "10px", Height: "20px", Backgroundcol Or: "#D00DAD"} enhanced cross-browser CSS3 support:

Now jQuery1.9 supports the following CSS3 selectors in all browsers, as well as working under IE6:
Nth-last-child,: Nth-of_type,: Nth-last-of-type,: First-of-type,: Last-of-type, Nly-of-type,: target,: root and: lang;

You can view the http://www.css88.com/jqapi-1.9/category/version/1.9/in the jquery 1.9 API Chinese Document

New. Finish () Method:

Stops the currently running animation, removes all queued animations, and matches the elements to complete all animations. For more information and examples see: jquery 1.9 RC1 blog post, or see http://www.css88.com/jqapi-1.9/finish/in the jquery 1.9 API Chinese documentation

Support for source Map:

You can now refer to running the compressed jquery version, but use source map for source debugging, but only Chrome is currently supported. The Source map principle can refer to Nanyi's article.

Fixed a lot of bugs:

For a specific list, see the last side of this article http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/

JQuery 2.0 Getting Started

The jquery 1.9 Upgrade Guide also applies to jquery 2.0, which is a wise choice for use with jquery 2.0 on Android, IOS, or Windows 8 apps, or Chrome/firefox plugins. If you want to use 2.0 on your website, then it is recommended that you refer to the script under IE:

<!--[if lt IE 9]>
<script src= "jquery-1.9.0.js" ></script>
<! [endif]-->
<!--[if GTE IE 9]><!-->
<script src= "jquery-2.0.0.js" ></script>
<!--[endif]->

< reference: Fool's Wharf & http://www.iteye.com/news/27006>

JQuery 2.0 released, no longer supported IE6/7/8

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.