ugrás a tartalomhoz

Spring 2010 jQuery Talks

Kevlar · 2010. Már. 6. (Szo), 18.55
jQuery prezentációk John Resig-től

Ez tetszik

Poetro · 2010. Már. 7. (V), 18.31
(function(window, undefined){ 
    // jQuery 
You see this convention in jQuery - it's a way of wrapping the internals, keeping it enclosed.
We define window using 'this' so that we can keep the window name local to jQuery and still guarantee that we're getting the global object.
We have undefined because it's an easy way to get an undefined variable that we can re-use.