What does $$ mean in Javascript?

前端 未结 6 1775
别那么骄傲
别那么骄傲 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:41

    Are you looking at a library such as mootools by chance? This is used as a short-hand to certain types of objects by accessing the DOM. They do things like $('myElement') to access page elements for example.

提交回复
热议问题