$("#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
$("#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