gpt4 book ai didi

javascript - {x :expression(. ..)} 是做什么的?

转载 作者:搜寻专家 更新时间:2023-11-01 04:56:47 24 4
gpt4 key购买 nike

<分区>

我遇到了用于 IE7 的 querySelectorAll 的 polyfill:

https://gist.github.com/connrs/2724353

我一直以为我在 JavaScript 方面是 Okayish,但我从来没有看到像 polyfill 第 9 行中引用的部分:

{x:expression(document.__qsaels.push(this))}

显然,它是一个具有键 x 和值 expression(document.__qsaels.push(this)) 的 JavaScript 对象,但除此之外,我知道的还有对我来说很神秘。这个 expression 函数有什么作用?我无法通过谷歌找到任何接近的东西。

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