为何变量在取集合中的数时在java中读不到这个变量值?
有一段程序如下:
<!--#include FILE="upload_5xsoft.inc"-->
<%
aa=1
bb=2
dim upload,file,formName,formPath,iCount
set upload=new upload_5xSoft ''建立上传对象
formPath="up/"
iCount=0
for each formName in upload.file ''列出所有上传了的文件
set file=upload.file(formName) ''生成一个文件对象
if file.FileSize>0 then ''如果 FileSize > 0 说明有文件数据
bb=Server.mappath(formPath&file.FileName)
file.SaveAs Server.mappath(formPath&file.FileName) ''保存文件
iCount=iCount+1
else
end if
set file=nothing
next
set upload=nothing
response.write "<script language='javascript'>alert('" & bb & "');</script>"
%>
在这个程序中我本意是取上传文件的路径,但是在变量bb经过改变后则什么都取不到,但是如果用:response.write "<script language='javascript'>alert('" & aa & "');</script>"则可以取到aa的值1,请问为何不能取bb在改变后的变量值?