1、将后台数据根据年月分组存储 function groupBy(array, f) { var groups = { }; array.forEach(function (o) { var group =