jQuery移入移出事件
mouseover和mouseout
以下程序一个父div中有一个子div,移入父div打印“father移入”,移出父div打印“father移出”
<script>
$(function()
{
$(".father").on("mouseover",function()
{
console.log("father移入");
})
$(".father").on("mouseout",function()
{
console.log("father移出");
})
}
</script>
<style>