📅  最后修改于: 2022-03-11 15:03:56.288000             🧑  作者: Mango
var dayOfWeek = 5;//friday
var date = new Date(2013, 10, 13);
date.setDate(date.getDate() + (dayOfWeek + 7 - date.getDay()) % 7);