use something like this:
function Year_Month(){
var now = new Date();
var yy = now.getYear();
var mm = now.getMonth()+1;
var cl = '';
if (now.getDay() == 0) cl = '';
if (now.getDay() == 6) cl = '';
return(cl + yy + '年' + mm + '月'); }
function Date_of_Today(){
var now = new Date();
var cl = '';
if (now.getDay() == 0) cl = '';
if (now.getDay() == 6) cl = '';
return(cl + now.getDate() + ''); }
function Day_of_Today(){
var day = new Array();
day[0] = "星期日";
day[1] = "星期一";
day[2] = "星期二";
day[3] = "星期三";
day[4] = "星期四";
day[5] = "星期五";
day[6] = "星期六";
var now = new Date();
var cl = '';
if (now.getDay() == 0) cl = '';
if (now.getDay() == 6) cl = '';
return(cl + day[now.getDay()] + ''); }
找時間來我家,我教你;)
所有跟帖:
• cg要小心,很多人去了他家都有去無回~ -小小艾- ♀ (0 bytes) () 03/23/2007 postreply 12:12:17
• Thanks for sharing. -cg333- ♀ (0 bytes) () 03/23/2007 postreply 13:22:00