assume this is for webform, you can trystring s = "123456789";
//it will not work if the length is less than 7
s = s.Substring(0,3) + "<BR>" + s.Substring(3,3) + "<BR>" + s.Substring(6);
Response.Write(s);
//it will not work if the length is less than 7
s = s.Substring(0,3) + "<BR>" + s.Substring(3,3) + "<BR>" + s.Substring(6);
Response.Write(s);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货