字符串问题急 一个字符串我要实现这个字符串中每200个字符 我要加入一个<br>标记怎么做 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <% Dim sS As String="..." Dim sR As String="" Dim i As Integer For i=1 to sS.Length Step 200 sR &= Mid(sS,i,200) Next Response.Write (sR)%> string str="abcdefg";string newstr="";int m=3;//200int n=0;n=str.Length/m;int l=0;for(int i=0;i<n;i++){ newstr=newstr+str.Substring(m*i,m)+"<br>"; l=m*i;}newstr+=str.Substring(l+m,str.Length-l-m)+"<br>";Response.Write(newstr); asp.net过滤特定字符串 关于事务的小问题 怎样把UTF-8转成gb2312 新浪图片浏览是怎么做出来的 数据量大,运行速度慢,如何让它快一点儿? 28个常用广告代码演示+下载,网站建设经典收藏!! 一个关于委托的问题 Asp.net 动态汉字模糊查询 动态生成一组CheckBox,在提交后怎样才能保留选择后的CheckBox的状态? Visual Studio.net的问题 利用javascript写的DOM操作能读取到服务器端的xml文件么? 请教各位高手。全部分奉送上。怎么样从用程序从服务器上拷贝文件到客户端,在线等。
Dim sS As String="..."
Dim sR As String=""
Dim i As Integer
For i=1 to sS.Length Step 200
sR &= Mid(sS,i,200)
Next
Response.Write (sR)
%>
string newstr="";
int m=3;//200
int n=0;n=str.Length/m;
int l=0;
for(int i=0;i<n;i++)
{
newstr=newstr+str.Substring(m*i,m)+"<br>";
l=m*i;
}
newstr+=str.Substring(l+m,str.Length-l-m)+"<br>";Response.Write(newstr);