数组对象根据某一个元素排序

arr.sort((a,b)=>a.type-b.type)

おすすめ

転載: blog.csdn.net/huhuhuja/article/details/116518637