摘要: 重写数组中的sort()方法 下面先以distance排序,如果相同以name排序 let arr = [ {distance: 3, name: 'jack'}, {distance: 1, name: 'tom'}, {distance: 5, name: 'abole'}, {distance 阅读全文
posted @ 2020-12-23 19:58 七度丢失的梦 阅读(279) 评论(0) 推荐(0) 编辑