for i=0 to 1
for j=0 to 1
response.Write("<script>alert("&j&");</script>")
next
for k=0 to 1
response.Write("<script>alert("&k&");</script>")
next
response.Write("<script>alert("&i&");</script>")
next
asp不支持这种写法,运行结果出错,请问如何改写实现上述循环,谢谢
------解决办法--------------------
你这不相当于是死循环了,你要让变量i,j,k进行加1啊
------解决办法--------------------
response.Write("<script>alert("&j&");</script>") 错误
response.Write("<script>alert('"&j&"');</script>") 加上单引号哦
你可以在你纯html里写个javascript试试
<script>
alert(0); //这是错误的
alert('0');//才是正确的
</script>