ASP Flush 方法

2018-09-25 21:02 更新

ASP Flush 方法


Response 對(duì)象參考手冊(cè) 完整的 Response 對(duì)象參考手冊(cè)

Flush 方法立即發(fā)送已緩存的 HTML 輸出。

注意:假如 response.Buffer 為 false ,此方法會(huì)引起一個(gè) run-time 錯(cuò)誤。

語(yǔ)法

Response.Flush

實(shí)例

<%
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!


Response 對(duì)象參考手冊(cè) 完整的 Response 對(duì)象參考手冊(cè)
以上內(nèi)容是否對(duì)您有幫助:
在線(xiàn)筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)