衣锦夜行的燕公子黄轩:ASP中使用replace的问题

来源:百度文库 编辑:高校问答 时间:2024/04/26 14:37:34
word=requset("word")
if not rs.eof then
do while not rs.eof
word1=rs("word1")
replace(title1,"word",word1) '我这里需要一个循环,来多次使用REPLACE,替换调word中的字符,word
replace(content1,"word",word1)
rs.movenext
loop
end if

replace(text,"","")的格式中是不是只能用字符?
有什么办法实现没有?
word,和word1 都不是字符串哦!!
是赋值了的

replace(title1,"word",word1)
replace(content1,"word",word1)
应该这样写
replace(title1,"word","word1")
replace(content1,"word","word1")