标签:
var
a =
new
array(
"日"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
);
var
week =
new
date().getday();
var
str =
"今天是星期"
+ a[week];
alert(str);
var
str =
"今天是星期"
+
"日一二三四五六"
.charAt(
new
date().getday());
标签:
原文地址:http://www.cnblogs.com/zouzou-blog/p/5781373.html