How well does jQuery support backward compatibility?

前端 未结 5 1387
耶瑟儿~
耶瑟儿~ 2020-11-29 10:15

We have had issues with Mootools not being very backward compatible specifically in the area of drag and drop functionality. I was wondering if anyone has had any similar pr

5条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 10:31

    jQuery has produced backwards compatibility plugins since version 1.0.

    Web development has changed a lot over the years, and jQuery has changed along with it. Through all of this time, the team has tried to walk the line between maintaining compatibility with code from the past versus supporting the best web development practices of the present.

    The project has the following backwards compatibility repos:

    • jquery-compat-1.0(Compatibility plugin for those upgrading to jQuery 1.1+ from jQuery 1.0)

    • jquery-compat-1.1(Compatibility plugin for those upgrading to jQuery 1.2+ from jQuery 1.1)

    • jquery-xpath(Implement XPath functionality for those upgrading to jQuery 1.2 from jQuery 1.1)

    • jquery-compat-1.3(Backwards compatibility plugin for jQuery 1.3 (to be used with jQuery 1.4))

    • jquery-migrate-1.x-stable(Migrate older jQuery code to jQuery 1.9+)

    • jquery-migrate(Migrate older jQuery code to jQuery 3.0+)

    References

    • jQuery Blog

    • jQuery Wiki: Won't Fix

    • jQuery Core Upgrade Guides

    • jQuery Migrate Plugin - Warning Messages (2.0)

    • jQuery Migrate Plugin - Warning Messages (3.0)

    • jqLint

提交回复
热议问题