代码片段

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

posted @ 2016-01-11 11:12  佛陀  阅读(202)  评论(0编辑  收藏  举报