📜  javascript next friday - Javascript 代码示例

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

代码示例1
var dayOfWeek = 5;//friday
  var date = new Date(2013, 10, 13);
  date.setDate(date.getDate() + (dayOfWeek + 7 - date.getDay()) % 7);