【问题标题】:What's the meaning of "$$("a")" in JavaScript? [duplicate]JavaScript 中的“$$("a")” 是什么意思? [复制]
【发布时间】:2019-02-05 05:53:26
【问题描述】:

$$("a") 在 JavaScript 中是什么意思?,这和 jQuery 有关系吗?

将其输入浏览器的控制台,它可以工作。

【问题讨论】:

  • @LucaKiebel 是的,谢谢。
  • 这是 Google 的 Command Line API$document.querySelector$$document.querySelectorAll,尽管依赖 $ 的这种行为是一个坏主意,因为在许多网站上它将被 jQuery 取代。
  • 所有链接的 dup 问题都在讨论具有 $$ 函数的特定库。 OP 是指那些库还是 Chrome 中的“内置”表达式? (或其他流行的浏览器)?
  • 第二个链接回答了OP的问题。

标签: javascript jquery


【解决方案1】:

在 Chrome 中,$$document.querySelectorAll 的别名。在expressions page 上了解更多信息。

【讨论】:

    猜你喜欢
    • 2011-04-16
    • 2021-09-18
    • 2015-07-15
    • 2018-07-17
    • 2021-03-31
    • 2013-05-31
    • 2014-09-22
    • 2020-10-04
    相关资源
    最近更新 更多