ASP Clear 方法
response 對象參考手冊Clear 方法清空任何已緩沖的 HTML 輸出。
注釋:此方法無法清除響應的頭部,只能清空響應的正文。
注釋:假如 response.Buffer 為 false,那么此方法會引起一個 run-time 錯誤。
語法
response.Clear
實例
<% 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 對象參考手冊