摘要: 利用数组api ——> sort来进行排序 var person = [ {name:"Rom",age:12}, {name:"Bob",age:22}, {name:"Ma",age:5}, {name:"Tony",age:25}] person.sort((a,b)=>{ return a. 阅读全文
posted @ 2021-03-23 18:07 smil、梵音 阅读(36) 评论(0) 推荐(0) 编辑