ASP Clear 方法
response 對(duì)象參考手冊(cè)Clear 方法清空任何已緩沖的 HTML 輸出。
注釋?zhuān)捍朔椒o(wú)法清除響應(yīng)的頭部,只能清空響應(yīng)的正文。
注釋?zhuān)杭偃?response.Buffer 為 false,那么此方法會(huì)引起一個(gè) run-time 錯(cuò)誤。
語(yǔ)法
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 對(duì)象參考手冊(cè)