从 Bootstrap 3.0.2 迁移到 3.4.1
我搜索了谷歌但找不到任何迁移指南。
我正在开发一个使用 Bootstrap 3.0.2 的网站,由于 <3.4.1 中发现的漏洞,我将其升级到 Bootstrap 3.4.1。我知道我可能需要对我的代码进行重大修改才能迁移它。
我只是想知道使用 bootstrap 3.4.1 是否安全?或者我应该迁移到 v4? 我错过了 bootstrap v3.0.2 到 3.4.1 的迁移指南吗?
I searched google but couldn't find any migration guide.
I'm working on a website that uses Bootstrap 3.0.2, and I am upgrading it to Bootstrap 3.4.1 because of the vulnerabilities found in <3.4.1. I know I may have to give my code a major revamp to migrate it.
I just want to know whether it's safe to use bootstrap 3.4.1? Or should I migrate to v4 instead?
Is there a migration guide for bootstrap v3.0.2 to 3.4.1 that I missed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您确实决定升级到 v4,我建议您直接升级到 v5,即最新版本。它更加稳定,没有那么多 JS(尽管 v4 非常好)。
v4 和 v5 实际上并没有多大区别,但 v3 和 v4 之间的差异却很大。大多数时候,这取决于属性的详细方式。例如,在 v3 导航栏中,其中两个属性是
data-toggle
和data-target
。从 v4 开始,这些变为data-bs-toggle
和data-bs-target
。我怀疑这些改变将是最重要的事情,否则可能不会像你想象的那么久。
If you do decide to go forward to v4 I would recommend going straight to v5 instead, the latest version. It is a lot more stable with not as much JS (even though v4 was very good).
v4 and v5 are not that different really, but the differences between v3 and v4 are huge. Most of the time this is coming down to the way attributes are detailed. In v3 navbar for example two of the attributes were
data-toggle
anddata-target
. From v4 onwards these becamedata-bs-toggle
anddata-bs-target
.I suspect those changes will be the biggest thing to do, otherwise it might not take as long as you think.