首页 新闻中心 新闻 新闻 - 社会

生成文件名的函数

2020/2/7 11:18:20 来源:发布

<%
'生成文件名的函数
function makefilename(fname)
fname = fname
fname = replace(fname,"-","")
fname = replace(fname," ","") 
fname = replace(fname,":","")
fname = replace(fname,"PM","")
fname = replace(fname,"AM","")
fname = replace(fname,"上午","")
fname = replace(fname,"下午","")
fname = replace(fname,"/","")  'replace(s1,s2,[s3]) 即s3替换s1中的s2字符,s3可以不填,默认是空字符。
'makefilename="" & fname & ".html"
makefilename="" & fname & ".html"
end function 
%>

责任编辑:网友