242
个编辑
无编辑摘要 |
Willson-v-(讨论 | 贡献) 无编辑摘要 |
||
(未显示2个用户的27个中间版本) | |||
第65行: | 第65行: | ||
ButtonLink.appendChild( ButtonText ); | ButtonLink.appendChild( ButtonText ); | ||
Button.appendChild( document.createTextNode( '[' ) ); | //Button.appendChild( document.createTextNode( '[' ) ); | ||
Button.appendChild( ButtonLink ); | Button.appendChild( ButtonLink ); | ||
Button.appendChild( document.createTextNode( ']' ) ); | //Button.appendChild( document.createTextNode( ']' ) ); | ||
Header.insertBefore( Button, Header.firstChild ); | Header.insertBefore( Button, Header.firstChild ); | ||
第94行: | 第94行: | ||
/////分页tab/////// | /////分页tab/////// | ||
$(document).ready( function(){ | $(document).ready( function(){ | ||
$(".tab").each(function(indextabs) { | |||
$(this).click(function(e) { | |||
//所点击的同胞去除active | |||
$(this).siblings().removeClass("active"); | |||
//同一个div下的 .tab-c 去除active | |||
$(this).parent().siblings().find(".tab-c").removeClass("active"); | |||
$(this).toggleClass("active"); | |||
$(".tab-c") | |||
.eq(indextabs) | |||
.toggleClass("active"); | |||
}); | |||
}); | }); | ||
}); | |||
///////结束//////// | ///////结束//////// |