js按照数组的某一个属性排序 2020-01-09 本文已影响0人 雨后晴阳 sortCols(a, b) { return a.cols - b.cols; } 使用 arr.sort(that.sortCols);