日期常见格式:年-月-日-星期** /**日期时间*/ var week = ["星期天","星期一","星期二","星期三","星期四","星期五","星期六"]; var localtoday = ''; var date = new Date(); localtoday = date.getFullYear()+"年"+ (date.getMonth() + 1)+"月"+date.getDate()+"日"; $(".todayweek").html(localtoday + week[date.getDay()]);