jq修改hover样式

$("#resTree").hover(function(){
            $(this).css("background-color","yellow");//hover时效果
        },function(){
            $(this)css("background-color","pink");//非 hover时效果
        });

可以参考w3c里的使用

http://www.runoob.com/jquery/event-hover.html

原文地址:https://www.cnblogs.com/xiaoliu66007/p/10724571.html