注意iOS只支持2018/03/09的时间格式 只需要匹配一个正则即可
return Date.parse(b.timestamp.replace(/-/g, ‘/’)) - Date.parse(a.timestamp.replace(/-/g, ‘/’));
vue的时间排序
最新推荐文章于 2024-07-25 17:11:44 发布
注意iOS只支持2018/03/09的时间格式 只需要匹配一个正则即可
return Date.parse(b.timestamp.replace(/-/g, ‘/’)) - Date.parse(a.timestamp.replace(/-/g, ‘/’));