$( selector ).mouseenter( handlerIn ).mouseleave( handlerOut );
$( selector ).hover( handlerIn, handlerOut )Example:
$( "p" ).hover(
function() { // 마우스가
$( this ).addClass( "hover" );
}, function() { // 마우스가 zone
$( this ).removeClass( "hover" );
}
);
$(selector).hover(handlerInOut)단일 함수를 hover()이면 mouseenter 및 mouseleave입니다. 이를 통해 jQuery 사용자는 핸들러에서 다른 장애 조치 방법을 사용하거나 event.type.
$( selector ).on( "상자 안팎의 마우스 포인터", handlerInOut );
Please disable your ad blocker and refresh the window to use this website.