Upgrade from jQuery 1.x to jQuery 2.x

后端 未结 3 1339
清歌不尽
清歌不尽 2021-01-30 20:09

I am trying to upgrade from jQuery 1.x to jQuery 2.x.

I have jQuery 1.8 and jQueryUI 1.8, and now I want to upgrade to jQuery 2.x and enhance my web app.

So m

3条回答
  •  庸人自扰
    2021-01-30 21:08

    If you are thinking of upgrading to jQuery 1.x to jQuery 2.x should consider this and take these steps :) :

    1.No More Support for IE6/7/8

    I still think it’s a little premature to abandon IE8 but the team couldn’t wait any longer. jQuery 2.0 removes all the legacy IE code for node selection, DOM manipulation, event handling and Ajax.

    2.Custom build feature has been refined in version 2.0

    so you can exclude any of 12 unused modules and shrink jQuery below 10Kb. The modules which can be omitted are: List of Functions

    Should I Upgrade?

    It’s important to understand that jQuery 2.0 has API parity with jQuery 1.9. There are a small number of bug fixes but no new features.

    However, if you’re one of those lucky developers who has dropped support for IE6/7/8, grab jQuery 2.0 and don’t look back.

提交回复
热议问题