mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added * You can have as many $(document).ready events on your page as you like.
This commit is contained in:
parent
eee853f120
commit
004f3dd517
@ -107,6 +107,8 @@ jQuery.fn.extend({
|
|||||||
* Please ensure you have no code in your <body> onload event handler,
|
* Please ensure you have no code in your <body> onload event handler,
|
||||||
* otherwise $(document).ready() may not fire.
|
* otherwise $(document).ready() may not fire.
|
||||||
*
|
*
|
||||||
|
* You can have as many $(document).ready events on your page as you like.
|
||||||
|
*
|
||||||
* @example $(document).ready(function(){ Your code here... });
|
* @example $(document).ready(function(){ Your code here... });
|
||||||
*
|
*
|
||||||
* @name ready
|
* @name ready
|
||||||
|
1
src/jquery/jquery.js
vendored
1
src/jquery/jquery.js
vendored
@ -154,6 +154,7 @@ if ( typeof $ != "undefined" )
|
|||||||
* behaves just like $(document).ready(), in that it should be used to wrap
|
* behaves just like $(document).ready(), in that it should be used to wrap
|
||||||
* all of the other $() operations on your page. While this function is,
|
* all of the other $() operations on your page. While this function is,
|
||||||
* technically, chainable - there really isn't much use for chaining against it.
|
* technically, chainable - there really isn't much use for chaining against it.
|
||||||
|
* You can have as many $(document).ready events on your page as you like.
|
||||||
*
|
*
|
||||||
* @example $(function(){
|
* @example $(function(){
|
||||||
* // Document is ready
|
* // Document is ready
|
||||||
|
Loading…
Reference in New Issue
Block a user