记忆的代码

1.

$(document).ready(function(e) {
  $("#content7 > div:not(:first)").hide();
  $("#hdm a").click(function(){
    $(this).addClass("current").parent("li").siblings().children("a").removeClass();
    $($(this).attr("href")).show(400).siblings().hide(400);
    return false; /* a标签不生效,不产生跳转效果*/
  })
});

posted @ 2016-05-15 19:42  飘然离去  阅读(108)  评论(0编辑  收藏  举报