加入收藏 | 设为首页 | 会员中心 | 我要投稿 驾考网 (https://www.jiakaowang.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > Asp教程 > 正文

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

发布时间:2023-10-10 15:04:08 所属栏目:Asp教程 来源:
导读:Flush 方法立即发送已缓存的 HTML 输出。

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

语法

Response.Flush

实例

<%

Response.Buffer=true

%>

<html>
Flush 方法立即发送已缓存的 HTML 输出。
 
注意:假如 response.Buffer 为 false ,此方法会引起一个 run-time 错误。
 
语法
 
Response.Flush
 
实例
 
<%
 
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!
 
 

(编辑:驾考网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章