const arr = [ { name: 'AAA', date: '2023/02/03' }, { name: 'BBB', date: '2023/03/05' }, { name: 'CCC', date: '2022/02/07' } ]; console.log( // 需要输出arr里的对象, 按照date排序 );
阅读量:18
点赞量:0