function setTime() { var dt = new Date(); var arr_week = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); var strWeek = arr_week[dt.getDay()]; var strHour = dt.getHours(); var strMinutes = dt.getMinutes(); var strSeconds = dt.getSeconds(); if (strMinutes < 10) strMinutes = "0" + strMinutes; if (strSeconds < 10) strSeconds = "0" + strSeconds; var strYear = dt.getFullYear() + "年"; var strMonth = (dt.getMonth() + 1) + "月"; var strDay = dt.getDate() + "日"; var strTime = strHour + ":" + strMinutes + ":" + strSeconds; document.getElementById("showtime").innerHTML = " " + strYear + strMonth + strDay + " " + strTime + "  " + strWeek; } setInterval("setTime()", 1000); 龙门娱乐平台龙门娱乐充值龙门娱乐官网龙门娱乐登录首页龙门娱乐官方APP