ASP Clear 方法

2018-09-09 10:29 更新

ASP Clear 方法


Response 對象參考手冊 完整的 Response 對象參考手冊

Clear 方法清空任何已緩沖的 HTML 輸出。

注意:此方法無法清除響應(yīng)的頭部,只能清空響應(yīng)的正文。

注意:假如 response.Buffer 為 false,那么此方法會引起一個 run-time 錯誤。

語法

response.Clear

實(shí)例

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


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

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號