回 帖 发 新 帖 刷新版面

主题:高手快进来看看,这是什么意思,谢谢

这段是什么意思
classfile=server.mappath("../autojs/class"&RootID&".js")
Set fso = CreateObject("Scripting.FileSystemObject")
Set txt = fso.OpenTextFile(classfile,1)
classjs=txt.ReadLine
classjs=replace(classjs,"document.write('"," ")
classjs=replace(classjs,"')"," ")
txt.close

'response.write sql
'response.write "<br>"
'response.end
rs.open sql,conn,1,1
if rs.eof and rs.bof then 
        
    HtmlContent=HtmlTemplate


if adbanner="" then
adbanner=""
end if

if classjs="" then
classjs="暂无分类"
end if

if strSoftList="" then
strSoftList="暂无产品"
end if

回复列表 (共2个回复)

沙发


首先我得说:“if rs.eof and rs.bof then”没有“end if”的结束符。
第一部分的程序就是读取js文件中的字符作为文本传给classjs变量,并把相应的字符串进行了替换。

板凳

这个程序应该是生成JS文件,供别的地方调用的.

我来回复

您尚未登录,请登录后再回复。点此登录或注册