js 获取今天是星期几

it2022-05-05  137

var now = new Date(); var day = now.getDay() - 1; var weeks = new Array("一", "二", "三", "四", "五", "六", "日"); var week = weeks[day]; console.log(week )

 


最新回复(0)