tab选项卡

$(".tab-title li").on('click', function(){
   $(".tab-title li").eq($(this).index()).addClass("cur").siblings().removeClass('cur');
   $(".tab-con>div").hide().eq($(this).index()).show();
})

posted @ 2016-07-20 11:18  Stefan-47  阅读(108)  评论(0编辑  收藏  举报