What does $$ mean in Javascript?

前端 未结 6 1745
别那么骄傲
别那么骄傲 2021-01-06 17:17

I am looking at some javascript code and it has this in a function:

$$(\'.CssClass\').each(function(x) { .... } )

I get that the intent is

6条回答
  •  孤城傲影
    2021-01-06 17:44

    Most likely a shorthand function name that handles the DOM accessing of the specified arguments, whether tag name or object id.

    As per above, you're likely in MooTools or jQuery.

提交回复
热议问题