這個用Jquery怎么實現(xiàn)?我下面的這個代碼哪里有問題,謝謝各位大神~~~
$(document).ready(function(){
$("li").each(function(index){
? ? ? ? $(this).click(function(){
? ? ? ? ? ? if($("#tabs div").eq(index).css("display")=="none"){
? ? ? ? ? ? ? ? $("#tabs div").eq(index).css("display")=="block");
? ? ? ? ? ? ? ??
? ? ? ? ? ? }else{
? ? ? ? ? ? ? ? $("#tabs div").eq(index).css("display")=="block"
? ? ? ? ? ? ? ? $("#tabs div").eq(index).css("display")=="none"
? ? ? ? ? ? }
? ? ? ? });
? ? });
});
引入了慕課網(wǎng)的jquery庫,為什么實現(xiàn)不了切換 ,求大神指教
2016-01-26
$('#tabs div').eq(index).disable判斷標(biāo)簽是否顯示
$('#tabs div').eq(index).disable();隱藏標(biāo)簽
$('#tabs div').eq(index).display();顯示標(biāo)簽