呵呵,你没分清楚服务气和客户端这样时可以的:
<html>
<%
fcount=5
%><script language="javascript">
<%
response.write("var fcount=" & fcount )
%>
function init()
{
alert("test");
alert(document.all.fcount);
}
</script><body onload="init()">
<%
response.write(fcount)
%>
</body>
</html>
<html>
<%
fcount=5
%><script language="javascript">
<%
response.write("var fcount=" & fcount )
%>
function init()
{
alert("test");
alert(document.all.fcount);
}
</script><body onload="init()">
<%
response.write(fcount)
%>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货