View Source
Go Back to /jang/books/webprog/06asp/example/response/listResponse.asp
Go Back to WWW sandbox
<%@language=jscript%>
<%title="印出 Response 物件的各種性質"%>
<!--#include file="../head.inc"-->
<hr>
Response.Buffer = <%=Response.Buffer%><br>
Response.ContentType = <%=Response.ContentType%><br>
Response.Expires = <%=Response.Expires%><br>
Response.ExpiresAbsolute = <%=Response.ExpiresAbsolute%><br>
Response.Status = <%=Response.Status%><br>
<%
function listprop(obj, objname) {
for (var i in obj)
Response.write(objname+".<font color=red>"+i+"</font>=<font color=green>"+obj[i]+"</font><br>");
}
Response.write("<br>Response 的資料型態是"+typeof(Response)+"<br>");
Response.write("為什麼下一段程式碼列印不出東西?同學請幫忙找原因!<br>");
for (var i in Response)
Response.write("Response.<font color=red>"+i+"</font>=<font color=green>"+Response[i]+"</font><br>");
%>
<hr>
<!--#include file="../foot.inc"-->