jQuery Migrate

jQuery Migrate

NOTE: To upgrade to jQuery 3.0, you first need version 1.12.x or 2.2.x.

If you're using an older version, first upgrade to one of these versions using jQuery Migrate 1.x, to resolve any compatibility issues.

For more information about the changes made in jQuery 3.0, see the upgrade guide and blog post.

Upgrading libraries such as jQuery can be a lot of work, when breaking changes have been introduced. jQuery Migrate makes this easier, by restoring the APIs that were removed, and additionally shows warnings in the browser console (development version of jQuery Migrate only) when removed and/or deprecated APIs are used.

That way you can spot and fix what otherwise would have been errors, until you no longer need jQuery Migrate and can remove it.

原文地址:https://www.cnblogs.com/chucklu/p/15305407.html