以下是引用tianyu123在2007-10-16 21:17:41的发言:
index.asp
[CODE]<script language="javascript">
function check()
{
var str=new Date()
t=str.getYear()
}
</script>
<%
response.Write"<script>check();</script>"
response.Write"<script>var s=t;</script>"
response.Write"<script>document.write('<form name=form1 method=post action=1234.asp><input type=hidden name=t1 value='+s+'></form>');</script>"
response.Write"<script>form1.submit();</script>"
%>[/CODE]
1234.asp
[CODE]<%
a=request.Form("t1")
b=a
response.Write b
%>[/CODE]
不可以直接调用,但可以转换个方式来应用!
index.asp
[CODE]<script language="javascript">
function check()
{
var str=new Date()
t=str.getYear()
}
</script>
<%
response.Write"<script>check();</script>"
response.Write"<script>var s=t;</script>"
response.Write"<script>document.write('<form name=form1 method=post action=1234.asp><input type=hidden name=t1 value='+s+'></form>');</script>"
response.Write"<script>form1.submit();</script>"
%>[/CODE]
1234.asp
[CODE]<%
a=request.Form("t1")
b=a
response.Write b
%>[/CODE]
不可以直接调用,但可以转换个方式来应用!
这个……你狠……但这个调用不太方便……