gpt4 book ai didi

jquery - Jquery 在怪异模式下运行良好吗?

转载 作者:行者123 更新时间:2023-12-03 22:21:55 24 4
gpt4 key购买 nike

由于我无法控制的原因,该网站以怪异模式运行。在这种情况下 Jquery 会帮助我吗?

我希望 jquery 开发人员今天专注于严格模式 - future 的模式。另一方面,所有这些库都曾经开始减轻在怪异模式下工作的痛苦。

最佳答案

不!

根据official jQuery site v. 1.8.1 :

Don’t use Quirks mode! jQuery has never supported Quirks mode and we do not perform any testing in Quirks. This can affect values like $("window").height(), and the jQuery 1.8 Quirks mode results did change in order to support some modern browser features. The majority of problem cases we’ve seen are from developers that wanted to be in Standards mode but had an invalid doctype or extraneous markup before their tag. When in doubt, use the simple and short <!doctype html>.

关于jquery - Jquery 在怪异模式下运行良好吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1500353/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com