728x90
반응형
$(window).load(function () {
alert("Loaded");
});
- 이슈
- load 호출 시점에 에러가 발생
- 원인
- jQuery 1.8에서 deprecate 3.0에서 remove
- api.jquery.com/load-event/
.load() | jQuery API Documentation
Description: Bind an event handler to the "load" JavaScript event. Note: This API has been removed in jQuery 3.0; please use .on( "load", handler ) instead of .load( handler ) and .trigger( "load" ) instead of .load(). This method is a shortcut for .on( "l
api.jquery.com
- 해결방안
- load 대신 on 사용
Note: This API has been removed in jQuery 3.0; please use .on( "load", handler ) instead of .load( handler ) and .trigger( "load" ) instead of .load(). |
(참고 : api.jquery.com/load-event/)
반응형
댓글