date()是不是一个函数呀
可不可以这么用我就不知道了呀
你想输出DATE()你可以用这个
在<BODY>和</BODY>之间加<!--
todayDate = new Date();
date = todayDate.getDate();
month= todayDate.getMonth() +1;
year= todayDate.getYear();
document.write("今天是")
document.write("<br>")
if(navigator.appName == "Netscape")
{
document.write(1900+year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日");
document.write("<br>")
}
if(navigator.appVersion.indexOf("MSIE") != -1)
{
document.write(year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日");
document.write("<br>")
}
if (todayDate.getDay() == 5) document.write("星期五")
if (todayDate.getDay() == 6) document.write("星期六")
if (todayDate.getDay() == 0) document.write("星期日")
if (todayDate.getDay() == 1) document.write("星期一")
if (todayDate.getDay() == 2) document.write("星期二")
if (todayDate.getDay() == 3) document.write("星期三")
if (todayDate.getDay() == 4) document.write("星期四")//-->
可不可以这么用我就不知道了呀
你想输出DATE()你可以用这个
在<BODY>和</BODY>之间加<!--
todayDate = new Date();
date = todayDate.getDate();
month= todayDate.getMonth() +1;
year= todayDate.getYear();
document.write("今天是")
document.write("<br>")
if(navigator.appName == "Netscape")
{
document.write(1900+year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日");
document.write("<br>")
}
if(navigator.appVersion.indexOf("MSIE") != -1)
{
document.write(year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日");
document.write("<br>")
}
if (todayDate.getDay() == 5) document.write("星期五")
if (todayDate.getDay() == 6) document.write("星期六")
if (todayDate.getDay() == 0) document.write("星期日")
if (todayDate.getDay() == 1) document.write("星期一")
if (todayDate.getDay() == 2) document.write("星期二")
if (todayDate.getDay() == 3) document.write("星期三")
if (todayDate.getDay() == 4) document.write("星期四")//-->
解决方案 »
- 请教在s2sh下action处理完后弹出提示后返回的方式
- Spring 如何读取 jar包中的 applicationContext-*.xml文件 很郁闷啊 搞了我两天了
- java.util.zip.ZipException:missing entry name是什么异常?
- 关于struts 中bean 标签的问题
- 字符串比较问题,谁能帮忙解释一下?小第先谢啦~
- 为何自动转到servlet执行?
- wsad如果配置服务器啊?刚开始用这东东,不好意思
- 找个懂STRUTS的JAVA程序员
- ejb资源引用失败
- 请问各位学J2EE用什么软件开发???
- 求助:关于Struts中html:file标签的英文显示问题。
- 请问,做小型web服务器的时候,如何让浏览器的“查看”->“编码”自动指向“繁体中文Big5”
我试了一下,还是不行啊!
继续求救
安装j2sdk1.5.0到E盘: 设置path=E:\j2sdk1.5.0\bin 设置JAVA_HAME=E:\j2sdk1.5.0 设置CLASSPATH=E:\j2sdk1.5.0\lib\tools.jar;E:\j2sdk1.5.0\lib\dt.jar
安装tomcat到E盘E:\Program Files\Apache Software Foundation\Tomcat 5.0:设置Tomcat_Home=E:\Program Files\Apache Software Foundation\Tomcat 5.0
在浏览器输入http://localhost:8080,可以显示主页,但是java部分显示不出来
org.apache.jasper.JasperException: Unable to compile class for JSPNo Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
是什么意思啊?
2004-10-24 15:12:52 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /servlets-examples from URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\servlets-examples
2004-10-24 15:12:53 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /test from URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\test
2004-10-24 15:12:54 org.apache.catalina.startup.ContextConfig applicationConfig
信息: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]
2004-10-24 15:12:54 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /tomcat-docs from URL file:E:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docs
2004-10-24 15:12:55 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on port 8080
2004-10-24 15:12:55 org.apache.jk.common.ChannelSocket init
信息: JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
2004-10-24 15:12:55 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=20/130 config=E:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\jk2.properties
2004-10-24 15:12:55 org.apache.catalina.startup.Catalina start
信息: Server startup in 9754 ms
to the common/lib directory of the Tomcat server, followed by a Tomcat
这里是说在Tomcat 5.0 common/lib 目录下缺tools.jar
在 j2sdk1.5.0 lib/目录拷贝一个