1818IP-服务器技术教程,云服务器评测推荐,服务器系统排错处理,环境搭建,攻击防护等

当前位置:首页 - 网站技术 - asp - 正文

君子好学,自强不息!

asp的Clear属性如何使用

2022-03-18 | asp | 1818ip | 328°c
A+ A-

标签含义:

Clear 方法清空任何已缓冲的 HTML 输出。

注意:此方法无法清除响应的头部,只能清空响应的正文。

注意:假如 response.Buffer 为 false,那么此方法会引起一个 run-time 错误。

实例说明:

<%
response.Buffer=true
%>
<html>
<body>
<p>This is some text I want to send to the user.</p>
<p>No, I changed my mind. I want to clear the text.</p>
<%
response.Clear
%>
</body>
</html>

输出:

(nothing)


本文来源:1818IP

本文地址:https://www.1818ip.com/post/508.html

免责声明:本文由用户上传,如有侵权请联系删除!

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。