从 jquery 1.3 升级到 1.4 的最佳方法是什么?
我正在尝试根据我们正在使用的所有库来确定升级是否可行。问题是其中一些插件不再开发,所以我不确定其中哪些与 1.4 兼容。
对于如何最好地处理旧插件的遗留依赖关系有什么想法吗?
I'm trying to decide if upgrading is viable given all the libraries we are using. The problem is some of these plugins arent being developed anymore so I'm not sure which of them is compatible with 1.4
Any thoughts on how to best approach this given legacy dependencies on older plugins?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果我要解决这个问题,我会执行以下操作:
越容易
当然,根据代码库的大小和复杂性,这可能是一个或多或少昂贵的过程。
编辑:结合jvenema的优秀观点,你有一个几乎万无一失的方法来确保你达到成功点。如果有什么东西坏了,只需插入插件即可。
If I were approaching this, I would do the following:
the easier
Of course, depending on the size and complexity of your code base, this could be a more or less expensive procedure.
EDIT: combined with jvenema's excellent point, you have a nearly fail-safe way to make sure you get to the success point. If something breaks, just throw in the plug-in.
jQuery 人员在尽可能保持向后兼容性方面做得非常好,以至于编写了一个扩展,使所有 1.3 的东西仍然可以工作,同时获得 1.4 的性能和功能。
请在此处查看详细信息。
The jQuery guys did a pretty good job of maintaining backwards compatibility where possible, to the point of writing an extension that makes all the 1.3 stuff still work, while getting the performance and features of 1.4.
Check out the details here.
信任但要验证。
Trust but verify.
如果我们在 freenode 上的 #jquery 中闲逛:
If we were hanging out in #jquery on freenode: