Created
September 17, 2013 04:44
-
-
Save lionhylra/6590158 to your computer and use it in GitHub Desktop.
These three implementations are equivalent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//1 | |
$( document ).ready(function() { | |
// Handler for .ready() called. | |
}); | |
//2 | |
$(function() { | |
// Handler for .ready() called. | |
}); | |
//3 | |
jQuery( document ).ready(function( $ ) { | |
// Code using $ as usual goes here. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment