function dataFunc (data){
var b = {};
$.each(data, function (i,v){
var g = v[key], //将评价人相同的拿出来组成一个新数组
c = b[g];
if(c){
b[g].push(v);
}else{
b[g] = [v];
};
});
return b
}
转载于:https://www.cnblogs.com/longsf/p/9697999.html