首页 > 开发 > Asp > 正文

ASP中向浏览器输出内容的方法

2023-04-17 22:05:13
字体:
来源:转载
供稿:网友

在ASP中一般使用response.write 命令用来向浏览器写输出。下面的例子向浏览器输出一段文本:"Hello World"。

<html>
<body>
<%
response.write("Hello World!")
%>
</body>
</html>

另外,还可以使用一种更简单的 response.write 命令的简写方法。下面的例子和上面的例子是等效的:

<html>
<body>
<%="Hello World!"%>
</body>
</html>

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表