【 在 moon783 (moon783) 的大作中提到: 】
: 整整一下午,什么也没干,就因为一个asp 的replace语句无法完成预定的动作
: 我的代码是这样写的,请帮忙分析一下吧:
: function htmlencode(str)
: if request("special")="true" then
: htmlencode=replace(replace(str,chr(13),"<br>"),"'","''")
: htmlencode=replace(htmlencode," "," ")
: htmlencode=replace(htmlencode,"img src","img src")
: else
: htmlencode=server.htmlencode(str)
: htmlencode=replace(htmlencode,"'","''")
: htmlencode=replace(str," "," ")
: end if
: end function
: 我想用这个函数先用 替换网页中文字中的空格,然后把文字中包含<img src语句的部分还原到<img src的正常格式。但是怎么也无法执行成功,结果是没有发生替换动作。
: 请问我的语法有问题吗?
语法如果有问题,根本运行不了
你一步一步输出一下结果试试呗
--
FROM 124.205.200.*