'生成JS文件
foolcat = "" + foolcat + ""
foolcat=replace(foolcat,"/","\/")
foolcat=replace(foolcat,"'","\'")
foolcat=replace(foolcat,Chr(13)&Chr(10) ,"")
foolcat = "document.write(""" & foolcat & """)"
response.Write(foolcat&chr(13))
FolderPath = Server.MapPath("./")
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fout = fso.CreateTextFile(FolderPath&"\js\"&js("id")&".js")
fout.WriteLine foolcat
js.movenext
loop
'关闭连接
fout.close
set fout = nothing
js.close
set js = nothing
conn.close
set conn=nothing
%>