日期:2014-05-17  浏览次数:20963 次

请教一个replace的小问题
假如我这样写:shimg =replace(thumbsurl(i),"/baidu/","x!") 
然后这样:countimg=countimg & ""&shimg&""
就没有效果。问题出在哪?

如果直接这样就没问题:
countimg=countimg & ""&replace(thumbsurl(i),"/baidu/","x!")&""

但是,我有3个replace要执行啊,上面这样写,怎么一次写3个呢?

------解决方案--------------------
shimg = shimg & replace(replace(replace(thumbsurl(i),"/baidu/","x!"),"/yahh/","k!"),"/goo/","l!")