1. 程式人生 > >使用jq實現tab選項卡

使用jq實現tab選項卡

選項卡 mov 選項 function spa color fun () dex

jq代碼

$(‘#fenlei_title span‘).click(function() {
            $("#fenlei_title span").eq($(this).index()).addClass("current").siblings().removeClass(‘current‘);
            $(".J_pic").hide().eq($(this).index()).show();
        });

使用jq實現tab選項卡