Array.prototype.indexOf called on null or undefined at Function.c.inArray (zepto.js<anonymous> (index.html:97)c.inArray @ zepto.js:2j @ zepto.js:2
这是97行前
我正在尝试使用异步eachSeries,以便对每个类别的报表计数进行编码。类别和报告并存储在单独的集合中,然后我首先获取可用的类别并对它们执行计数搜索。 Category.find({},{_id:0, name: 1}, function (err, foundCategories) { function (item,callback) {
Report.count({category: item.name}, function