javascript - How Jquery scope gets passed to ready() methods callback function? -


i got following code jquery.noconflict() docs

<script type="text/javascript" src="other_lib.js"></script> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript">   $.noconflict();   jquery(document).ready(function($) {     // code uses jquery's $ can follow here.   });   // code uses other library's $ can follow here. </script> 

as can see, ready methods callback function accepts parameter passing parameter ?

"we" aren't passing function. jquery library passing it, jquery api (which jquery object), function callback.

see also: avoiding conflicts other libraries


Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -