asp生成静态网页问题
setofso=server.CreateObject("scripting.filesystemobject")setts=ofso.opentextfile(serv...
set ofso=server.CreateObject("scripting.filesystemobject")
set ts=ofso.opentextfile(server.MapPath("/show_html/moban.html"),1,flase)
if not ts.atendofstream then
mob=ts.readall
mob=replace(mob,"$title$",title)
mob=replace(mob,"$content$",content)
end if 展开
set ts=ofso.opentextfile(server.MapPath("/show_html/moban.html"),1,flase)
if not ts.atendofstream then
mob=ts.readall
mob=replace(mob,"$title$",title)
mob=replace(mob,"$content$",content)
end if 展开
1个回答
展开全部
set ofso=server.CreateObject("scripting.filesystemobject")
set ts=ofso.opentextfile(server.MapPath("/show_html/moban.html"),1,flase)
if not ts.atendofstream then
mob=ts.readall
if mob <> "" then
mob=replace(mob,"$title$",title)
mob=replace(mob,"$content$",content)
end if
end if
set ts=ofso.opentextfile(server.MapPath("/show_html/moban.html"),1,flase)
if not ts.atendofstream then
mob=ts.readall
if mob <> "" then
mob=replace(mob,"$title$",title)
mob=replace(mob,"$content$",content)
end if
end if
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询