如何用js重写asp?用for in语句
<%@ LANGUAGE="VBSCRIPT"%>
<%
Session.Contents("1") = "一"
Session.Contents("2") = "二"
Session.Contents("3") = "三"
for each a IN Session.Contents
Response.Write Session.Contents(a)
next
%>
如何用js重写?用for in语句
<%@ LANGUAGE="JSCRIPT"%>
<%
Session.Contents("1") = "一"
Session.Contents("2") = "二"
Session.Contents("3") = "三"
? ? ?
%>
------解决方案--------------------么有用过jscript
for(var a in Session.Contents){
Response.Write Session.Contents(a)
}
这样试试?