gpt4 book ai didi

jquery - Chrome 中通过 jQuery 的新警告

转载 作者:技术小花猫 更新时间:2023-10-29 11:20:35 25 4
gpt4 key购买 nike

在我的一个较大的 CSS+jQuery 元素中,Chrome 开发者工具中突然出现了一条新的警告消息(可能是在更新后),我无法弄清楚问题可能是什么:

The specified value '!' does not conform to the required format. The format is '#rrggbb' where rr, gg, bb are two-digit hexadecimal numbers.

我到处都检查过了,我没有使用任何 '!'指定颜色时。

我使用的是 jQuery 2.1.0 版本。

最佳答案

在我的例子中,这个警告是由Spectrum.js引起的,我试图将它从我的元素中删除并且错误不再发生,然后我认为就是这样。你也在你的元素中使用这个库吗?

这是相关问题:#291 #292

这可以做一个修复:替换“!”在 spectrum.js 的第 75 行带有“#ffffff”

inputTypeColorSupport = (function() { var colorInput = $("<input type='color' value='#ffffff' />")[0]; return colorInput.type === "color" && colorInput.value !== "#ffffff"; })(),

关于jquery - Chrome 中通过 jQuery 的新警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29004611/

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