记忆的代码

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标签不生效,不产生跳转效果*/
  })
});

原文地址:https://www.cnblogs.com/coding4/p/5495905.html