数组排序 sort

数组排序

this.dataShow = this.data.sort((a, b) => {
return parseInt(a[this.innerOrderBy]) - parseInt(b[this.innerOrderBy])
})
posted @ 2019-03-06 09:08  彭成刚  阅读(140)  评论(0编辑  收藏  举报