📅  最后修改于: 2022-03-11 15:01:26.646000             🧑  作者: Mango
var days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
var d = new Date(dateString);
var dayName = days[d.getDay()];