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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -