社区
ASP
帖子详情
一个简单问题:replace怎么用呀!!
amavis
2000-07-25 01:16:00
我在程序中有如下行
str1="abcdefg"
str2="cde"
replace(str1,str2,"<h2>"& "cde" & "</h2>")
response.write str1
可是到replace那一行老是报错
奇怪
...全文
121
7
打赏
收藏
一个简单问题:replace怎么用呀!!
我在程序中有如下行 str1="abcdefg" str2="cde" replace(str1,str2,""& "cde" & "") response.write str1 可是到replace那一行老是报错 奇怪
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
amavis
2000-07-25
打赏
举报
回复
hehe
sorry TopHead你也对了
可惜我已经给完分了
TopHead
2000-07-25
打赏
举报
回复
下面的你试一下:
str1="abcdefg"
str2="cde"
replace str1,str2,"<h2>"& "cde" & "</h2>"
response.write str1
amavis
2000-07-25
打赏
举报
回复
哦
我错了一个地方
huntout说对了
amavis
2000-07-25
打赏
举报
回复
huntout你试一下
不行!!!
amavis
2000-07-25
打赏
举报
回复
vbscript
我查了是这样的
Replace( expression,find,replacewith[,start[,count[,compare] ] ] )
该函数用子字符串replacewith代替设定的子字符串find设定的次数。Compare的值可见后面的“比较常量”部分。
huntout
2000-07-25
打赏
举报
回复
str1 = replace(str1,str2,"<h2>"& str2 & "</h2>")
TopHead
2000-07-25
打赏
举报
回复
你用法可能有错误,你用的是什么脚本语言啊?
std::string::
replace
使用小计
ctrl+c / ctrl+v 真是害死人,看起来
简单
的东西,往往...今天遇到的
问题
是
简单
调用string::
replace
替换子串的
问题
,如: std::string sTest1 = "12x567890"; std::string sTest2 = sTest1; std::string sSub = "x";
5)Thymeleaf 模板布局 th:fragment、th:
replace
、th:insert、th:remove
th:insert 与 th:
replace
区别 参数化片段签名 编码示例 commons.html 公共模板 user/home.html 引入模板片段 运行效果 th:remove 删除模版片段 th:fragment 模板布局 模板片段说明 模板中,经常希望从...
Thymeleaf 模板布局 th:fragment、th:
replace
、th:insert、th:remove
Thymeleaf 模板布局 th:fragment、th:
replace
、th:insert、th:remove
Thymeleaf中th:include、th:
replace
、th:insert、th:fragment用法及区别
布局标签,定义
一个
代码片段,方便其它地方引用 <div th:fragment="alert"> th:include 布局标签,替换内容到引入的文件 <head th:include="layout :: htmlhead" th:with="title='xx'">...
Suggestion: add ‘tools:
replace
=”android:authorities”
版权声明:本文为博主原创文章,未经博主允许不得转载。 ... 1、sdk导入的
问题
这个sdk不sdk不光只有
一个
*.jar代码文件,还有
一个
res文件...
ASP
28,390
社区成员
357,068
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章