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

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -