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

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

君子好学,自强不息!

asp的Flush属性如何使用

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

标签含义:

Flush 方法立即发送已缓存的 HTML 输出。

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

实例说明:

<%
Response.Buffer=true
%>
<html>
<body>
<p>I write some text, but I will control when the
text will be sent to the browser.</p>
<p>The text is not sent yet. I hold it back!</p>
<p>OK, let it go!</p>
<%
Response.Flush
%>
</body>
</html>

输出:

I write some text, but I will control when the
text will be sent to the browser.
The text is not sent yet. I hold it back!
OK, let it go!


本文来源:1818IP

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

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

发表评论

必填

选填

选填

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