首页 > 其他 > 详细

记忆的代码

时间:2016-05-15 21:27:54      阅读:190      评论:0      收藏:0      [点我收藏+]

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

记忆的代码

原文:http://www.cnblogs.com/coding4/p/5495905.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!