二级导航 js

$(function(){
    $(".classify dl dd").mouseover(function(){
      $(this).addClass("on");
      $(this).children("ul").show();
  })
})
// 关键二:正确使用jQuey的语法完成行为。
$(function(){
   $(".classify dl dd") .mouseout(function(){
     $(this).removeClass('on');
     $(this).children("ul").hide();
  })
})

 

posted @ 2018-12-28 09:52  漫天风沙  阅读(132)  评论(0编辑  收藏  举报