代码片段

 $.each($('#items').children(), function(index, value) {
        if ($(this).attr("label-cate") == id) {
            $(this).show();
        } else {
            $(this).hide();
        }
    });

你可能感兴趣的:(代码片段)