📜  排序日期数组 javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:24.831000             🧑  作者: Mango

代码示例6
const activities = [
  { title: 'Hiking', date: new Date('2019-06-28') },
  { title: 'Shopping', date: new Date('2019-06-10') },
  { title: 'Trekking', date: new Date('2019-06-22') }
]