783
个编辑
无编辑摘要 |
无编辑摘要 |
||
第93行: | 第93行: | ||
/////分页tab/////// | /////分页tab/////// | ||
$(".tab").each(function(index) { | $(document).ready( function(){ | ||
$(".tab").each(function(index) { | |||
$(this).click(function(e) { | |||
triggletab(); | |||
triigletabcontent(); | |||
$(this).toggleClass("active"); | |||
$(".tab-c") | |||
.eq(index) | |||
.toggleClass("active"); | |||
}); | |||
}); | }); | ||
//to remove all tab headers | |||
function triggletab() { | |||
$(".tab").each(function() { | |||
$(this).removeClass("active"); | |||
}); | |||
} | |||
//triggle the tab content | |||
function triigletabcontent() { | |||
$(".tab-c").each(function() { | |||
$(this).removeClass("active"); | |||
}); | |||
} | |||
}); | }); | ||
///////结束//////// | ///////结束//////// |