var now = new Date(); sHour=now.getHours(); //时 sMinute=now.getMinutes();//分 sSecond=now.getSeconds();//秒 sDay = now.getDay();//星期 sYear = now.getYear(); sMonth = now.getMonth(); sDate = now.getDate();