高手帮忙写下asp涵数啊!先谢谢了! function aa(bb)aa=bb;end function调用的时候: bb="/up/img/1.gif"call aa(bb) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function aa(bb,str)aa=left(bb,instrrev(bb,"/"))&str&right(bb,len(bb)-instrrev(bb,"/"))end functionresponse.write aa("/up/img/1.gif","lysanhu") 有点像批量改名。二楼正解!asp与vbscript相通。我作一个vbscript本地页面测试通过:========以下代码============<html><head> <title>批量替换测试</title></head><body><script language="vbscript">function aa(bb,str) aa=left(bb,instrrev(bb,"/")) & str & right(bb,len(bb) - instrrev(bb,"/"))end functiondocument.write(aa("/up/img/1.gif","lysanhu"))document.write("<p>")document.write(aa("/up/img/23.gif","lysanhu"))document.write("<p>")document.write(aa("/up/img/4_6.gif","lysanhu"))document.write("<p>")document.write(aa("/up/img/7%208.gif","lysanhu"))document.write("<p>")</script></body></html> Click the link to solve your problem.Good luck! 为什么这个不对? 翻译代码200分送上 怎樣通過一個鏈接調用script??急!! {分享}静态网页中在树菜单里 展开其中一个的同时,自动闭合其他的菜单 网页版的n体问题模拟 7行的一个页面,问字符串强制类型转换问题 jquery ajax submit form中包括一个input file 怎么设计使下来菜单使前台页面的部分发生变化? 请教一个javascript问题,有点难度 我想做一个用for循环的 求这样一个时间选择联动效果~~ <img>问题
aa=left(bb,instrrev(bb,"/"))&str&right(bb,len(bb)-instrrev(bb,"/"))
end functionresponse.write aa("/up/img/1.gif","lysanhu")
二楼正解!asp与vbscript相通。我作一个vbscript本地页面测试通过:========以下代码============<html>
<head>
<title>批量替换测试</title>
</head><body><script language="vbscript">
function aa(bb,str)
aa=left(bb,instrrev(bb,"/")) & str & right(bb,len(bb) - instrrev(bb,"/"))
end functiondocument.write(aa("/up/img/1.gif","lysanhu"))
document.write("<p>")document.write(aa("/up/img/23.gif","lysanhu"))
document.write("<p>")document.write(aa("/up/img/4_6.gif","lysanhu"))
document.write("<p>")document.write(aa("/up/img/7%208.gif","lysanhu"))
document.write("<p>")
</script>
</body>
</html>