jQuery 효과 show() 메서드
예시
숨겨진 모든 <p> 요소 표시:
$("button").click(function(){
$("p").show();
});
정의 및 사용법
show() 메소드는 숨겨진 선택된 요소를 보여줍니다.
참고: show()는 jQuery 메서드로 숨겨진 요소와 CSS의 display:none에서 작동합니다(그러나 Visibility:hidden은 아님).
팁: 요소를 숨기 려면 hide() 메서드 를 살펴보세요 .
통사론
$(selector).show(speed,easing,callback)
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the show effect. Default value is 400 milliseconds Possible values:
|
easing | Optional. Specifies the speed of the element in different points of the animation. Default value is "swing" Possible values:
|
callback | Optional. A function to be executed after the show() method is completed
To learn more about callback, visit our jQuery Callback chapter |
직접 해보십시오 - 예
사용 요소를 숨기거나 표시할 때 속도 매개변수를 사용하는 방법입니다.
사용 요소를 숨기거나 표시할 때 콜백 매개변수를 사용하는 방법입니다.