jQuery - resize() 메서드

이 메서드는 .on('크기 조정', 핸들러) 또는 .trigger('resize').
브라우저 창의 차원이 변경되면 크기 조정 이벤트가 window 요소로 전송됩니다.

구문:

요소에 대한 resize() 메서드를 트리거합니다.

$(selector).resize()
크기 조정 이벤트에 함수를 첨부합니다.

$(selector).resize(function)

Example:

$( window ).resize(function() {
$( "#log" ).append( "resize() 메소드 호출됨" );
});
이 예에서는 메시지가 < div id="로그"입니다> 창 크기가 조정될 때마다.

참조:
https://www.w3schools.com/jquery/event_resize.asp
https://api.jquery.com/resize/