28,390
社区成员
发帖
与我相关
我的任务
分享
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>一个简单的ASP程序</title>
</head>
<body>
<%
Const PI=3.1415926
Const conCountry="中国"
Const conBirthday=#1990-9-9#
Response.Write "中国<br/>"
Response.Write "#1990-9-9#<br/>"
Response.Write "PI"
%>
</body>
</html>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>一个简单的ASP程序</title>
</head>
<body>
<%
Const PI="3.1415926"
Const conCountry="中国"
Const conBirthday="#1990-9-9#"
Response.Write conCountry&"<p>"
Response.Write conBirthday&"<p>"
Response.Write PI&"<p>"
%>
</body>
</html>
<body>
<%
Const PI = 3.1415926
Const conCountry = "中国"
Const conBirthday = #1990-9-9#
Response.Write "中国<br>"
Responde.Write "#1990-9-9#<br>"
Response.Write "PI<br>"
%>
</body>
Response.Write "中国<p/>"
Responde.Write "#1990-9-9#<p/>"
Response.Write "PI<p/>"
另外,楼主的原来的写法有些错。应该出现运行错误的。