无支架大棚骨架:一个非常简单的script程序错在那里?

来源:百度文库 编辑:中科新闻网 时间:2024/05/02 06:44:16
<% @ language="vbscript" %>
<html>
<head>
<title>hello</title>
</head>
<body>
<script language="javascript" runat="server">
function hello()
{
response.write "hello,world"
}
</script>
<%
for i= 1 to 5
hello()
next
%>
</body>
</html>
这是一个非常简单的script程序,文件以ASP的格式存在,但是有点小问题,不知道错在哪里,希望哪位大虾帮帮忙?

response.write "hello,world"

应该是ASP程序来的,,应该加在<%%>这时
改成
<%
response.write "hello,world"
%>

Response.write
R要大写