javascript - What's the .apply jQuery function? -
javascript - What's the .apply jQuery function? -
i see in different plugins , codes, don't understand function... in jquery api isn't referenced!
apply
calls function set of arguments. it's not part of jquery, it's part of core javascript. however, there mention of in jquery docs:
http://docs.jquery.com/types#context.2c_call_and_apply
syntax:
somefunction.apply(thisobj, [argsarray])
the above calls function somefunction
, setting this
thisobj
within function's scope, , passing in arguments argsarray
arguments function.
javascript jquery plugins apply
Comments
Post a Comment