jQuery 对向后兼容性的支持如何?

我们遇到了 Mootools 不能向后兼容的问题,特别是在拖放功能方面.我想知道是否有人对 jQuery 不向后兼容有任何类似的问题.我们开始大量使用它,并正在考虑升级到更新版本以开始使用几个需要它的插件.如果我们摆脱旧版本,我们会有什么问题吗?

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 problems with jQuery not being backward compatible. We are starting to use it quite heavily and are thinking about upgrading to a newer version to start using several plugins that require it. Will we have any issues if we get rid of the older version?

推荐答案

jQuery 似乎很好地向后兼容.我已经通过几个版本的核心使用它超过几年了,并且在升级时没有遇到问题,除了一些带有一些插件的小问题.我会说核心似乎很好,但如果你使用很多插件,你可能会遇到一些问题(但这些通常很容易修复,或者新核心无论如何都内置了该功能,所以你可以放弃他们).

jQuery seems to be nicely backward compatible. I have been using it for more than a couple of years now through several versions of the core and have not had issues when upgrading except a few minor ones with some plugins. I would say that the core seems to be fine but if you're using a lot of plugins you might run into some problems (but these are usually easy to fix, or the new core has that functionality built in anyway so you can just drop them).

相关文章