What does $$ mean in Javascript?

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

    Any chance you are looking at a MooTools script? http://www.consideropen.com/blog/2008/08/30-days-of-mootools-12-tutorials-day-2-selectors/ (now owned by a domain grabber)

    "The $$ lets you quickly select multiple elements and places them into an array (a type of list that lets you manipulate, retrieve, and reorder the list in all sorts of ways). You can select elements by name (such as div, a, img) or an ID, and you can even mix and match."

提交回复
热议问题