📜  dayofweek javascript 代码示例

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

代码示例1
var days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
var months = ['January','February','March','April','May','June','July','August','September','October','November','December'];

var day = days[ now.getDay() ];
var month = months[ now.getMonth() ];