迁移到 jquery 1.4
我想将网站从 1.3.2 升级到 1.4,因为我发现有一些很好的性能改进。
我可以简单地把这个放进去还是应该 我担心我的插件 在职的?
向后兼容吗?
我应该担心什么?
I would like to upgrade a site from 1.3.2 to 1.4 as I see there are some good performance improvements.
Can I simply drop this in or should
I be concerned about my plugins
working?Is it backward compatible?
What should I be worrying about?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
检查此页面: http:// jquery14.com/day-01/jquery-14 (来自 web.archive.org 的缓存版本)
底部有一个重大更改列表。如果您遇到问题,它会给您一个想法。
还有一个 插件 使 jQuery 1.4 与 1.3 兼容。
Check this page: http://jquery14.com/day-01/jquery-14 (cached version from web.archive.org)
On the bottom there's a list of breaking changes. It will give you an idea if there are issues for you.
There's also a plugin which makes jQuery 1.4 compatible with 1.3.
你应该没问题,但这里有一个潜在问题列表:
http://jquery14.com/day- 01#向后
you should be fine but there are a list of potential issues here:
http://jquery14.com/day-01#backwards
最好的办法就是尝试一下看看。 jQuery14.com 有一个向后兼容性列表,以及您可以使用的 1.3 兼容插件以减轻打击。
Best bet is to try it and see. jQuery14.com has a backward compatibility list, as well as a 1.3-compat plugin you can use to soften the blow.
前几天我也做了同样的事情,没有任何问题。一件有趣的事情是,该网站声称 1.4 不再默认
$()
为$(document).ready
- 然而我确实有这样的代码并且它工作正常。 ..I've done the same thing the other day and had no issues. One interestng thing is that the site claims that 1.4 no longer defaults
$()
to$(document).ready
- I do however have such code and it is working fine...