求助ASP帮忙
初学者·学ASP访问时显示不出来请问怎么回事
<html>
<head>
<title>`.wish打死你</title>
</head>
<body>
<h2 align="center">欢迎光临我的主页</h2>
<p align="center">
<%
sj="您的来访时间是: "& Date() & Time()
Respones.Write sj '输出结果
%>
</body>
</html>
参考答案:<html>
<head>
<title>`.wish打死你</title>
</head>
<body>
<h2 align="center">欢迎光临我的主页</h2>
<p align="center">
<%
sj="您的来访时间是: "&now()
Respones.Write sj '输出结果
%>
</body>
</html>
如果要控制 时间的格式 可以参考函数
formatdatetime(时间,显示方式)
例如
<%=formatdatetime(now(),0)%>2007年3月11日
<%=formatdatetime(now(),1)%>2007年3月11日
<%=formatdatetime(now(),2)%>2007-3-11
<%=formatdatetime(now(),3)%>19:28:51
<%=formatdatetime(now(),4)%>19:29