时间为什么不显示 在function前加上<script language="javascript"> 最后加上</script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ page contentType="text/html; charset=" language="java" import="java.sql.*" errorPage="" %><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><script>function PageDate(){ currentDate = new Date(); with (currentDate) { day=getDay(); month=getMonth()+1; this.document.classname="sj"; this.document.write('北京时间 '+getFullYear()+'年'+month+'月'+getDate()+'日'+getHours()+'时'); } if (day==1){document.write(' 星期一')}; if (day==2){document.write(' 星期二')}; if (day==3){document.write(' 星期三')}; if (day==4){document.write(' 星期四')}; if (day==5){document.write(' 星期五')}; if (day==6){document.write(' 星期六')}; if (day==0){document.write(' 星期日')}; document.write('<br>');}</script><body onLoad="PageDate()"></body></html> jsp的foreach问题 struts2标签问题iterator 请问怎样做jsp权限树~是js吗 求教:java调用python脚本,脚本中有一个import fontforge Java web中为什么用xml做配置文件 怎样编辑STRUTS模型中的.properties文件啊? 救救我:连接就是关不了啊,怎么回事? 谁有JAVA、JSP的电子手册,或像msdn的网站 serverlet与javabean紧急求救 servlet中的request和session疑问 高分解决怪问题! css可不可以实现下拉菜单无立体效果的方法啊
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<script>
function PageDate()
{
currentDate = new Date();
with (currentDate)
{
day=getDay();
month=getMonth()+1;
this.document.classname="sj";
this.document.write('北京时间 '+getFullYear()+'年'+month+'月'+getDate()+'日'+getHours()+'时');
}
if (day==1){document.write(' 星期一')};
if (day==2){document.write(' 星期二')};
if (day==3){document.write(' 星期三')};
if (day==4){document.write(' 星期四')};
if (day==5){document.write(' 星期五')};
if (day==6){document.write(' 星期六')};
if (day==0){document.write(' 星期日')};
document.write('<br>');
}
</script>
<body onLoad="PageDate()">
</body>
</html>