日期:2014-05-16 浏览次数:20391 次
<html> <title>test date</title> <script language="javascript"> function onLoad(){ day = new Date().getDay(); alert("今天星期"+"天一二三四五六".charAt(day)); if((day==0) || (day ==6)){ alert("今天是周末!"); }else{ alert("今天fei周末!"); } } </script> <body onload="onLoad()"> </body> </html>?