[Solution found!] 从lodash 3.5.0开始,您可以使用sortByOrder(在v4.3.0中重命名为orderBy): var data = _.sortByOrder(array_of_objects, ['type','name'], ...
確定! 回上一頁