Are jQuery() and $() aliases? -
I understand that $ ()
is a shortcut for jQuery () The nickname is
but then I read what they are two different things?
EDIT: Thanks for the answer. Why is there no consistency in the document, which uses $ ()
for the most part, then switch to jQuery ()
in the UILights section? That's why I confused myself.
No, you were right. They are nicknames, what the doctor was trying to say was to choose something that runs on the cover of jquery, resulting in:
$ (some) .each (function (). .});
There is a separate function on a bare object (whether it is $
or jQuery
:
$ Each (some, works () {...});
which can be applied to any adequate array-type sequence, not just jQuery wrapper objects < / P>
Comments
Post a Comment