티스토리 뷰

$(window).load(function() {});

Should be changed to

$(window).on('load', function (e) {})

These are all equivalent:

$(function(){
}); 

jQuery(document).ready(function(){
});

$(document).ready(function(){
});

$(document).on('ready', function(){
})

'Programming > jQuery, Ajax' 카테고리의 다른 글

(function($){ }(window.jQuery);  (0) 2018.01.10
댓글