JS动态显示年月日星期时分秒

JS动态显示年月日星期时分秒
<html> <head> <meta http-equiv="Content-Type” content="text/html; charset=gb2312"> <title>动态显示年月日星期时分秒</title> <script type="text/javascript"> var days=new Array ("日", "一", "二", "三", "四", "五", "六"); function showDT() { var currentDT = new Date(); var y,m,date,day,hs,ms,ss,theDateStr; y = currentDT.getFullYear(); //四位整...