$(document).ready(function() {
});
$(window).ready(function () {
});
$(window).load(function() {
});
$(window).on("load", function () {
});
$(function() {
});
(function($) {
})(jQuery);
want to figure out which one to use? Or is there something better?
and when to use it?
in addition, I found that when I unplug this, the js code still works. So under what circumstances do you need to use it?
which one is the most versatile?
charge
I have a lot of js files
each of which may be fucntion () {}
, click
, submit
and so on
so each $(function () {
?
found another
jQuery(document).ready(function ($) {
recharge
I find that sometimes I can"t use this function
like I have a file that is all function
I can"t use it after I use it