개발
jQuery 에서 document ready와 window load의 차이
마스타
2015. 4. 29. 10:49
300x250
jQuery 에서 기본이 되는 구문 중에 아래와 같은 document ready 구문이 있다.
document ready 와 window load 의 차이점을 알아 보자.
$(document).ready(function(){
alert('ready');
});
$(window).load(function(){
alert('load');
});
** 이미지 출처 : http://ojtiger.com/179
300x250