Replace的问题 现有字符test,如何变成"test"? string tmp = "test"; return tmp .Replace(test,""+tmp+""); 我这样写,结果返回的还是test.请问大家怎么转? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string tmp = "test"; return tmp .Replace(tmp,""+tmp+""); string tmp = "test"; return tmp .Replace(tmp,"\"tmp\""); string tmp = "test"; return tmp .Replace(tmp,"\""+tmp+"\""); anheizhizi(目标:★★★★★) ( ) 信誉:100 2006-08-10 17:20:00 得分: 0 string tmp = "test"; return tmp .Replace(tmp,"\"tmp\""); 呵呵,好累好累 是对的。return tmp .Replace(tmp,"\""+tmp+"\"");引号中如果有 " 应该用 转义字符 .net与flash问题?高分奉送!!! 如何把A文件夹中的文件复制到B文件夹中,如有的话覆盖 寻求解决方案 在ASP.NET中, 如何实现类似ASP一样的include file 效果呢? 为什么这里无法Catch 到异常-Page_PreInit? 请问事务能用在一个表中吗? 有没有办法通过80端口重新启动IIS和SQL? 准备写个功能简单的论坛。(请大家指导一下思路) ip问题 怎么在没有显式页面的类中访问xml文件? 100分求一正则 值得所有国人看一看的文章!!!!敢冒降誉风险开此贴!!!!!!!!!!!
return tmp .Replace(tmp,""+tmp+"");
return tmp .Replace(tmp,"\"tmp\"");
return tmp .Replace(tmp,"\""+tmp+"\"");
string tmp = "test";
return tmp .Replace(tmp,"\"tmp\"");
return tmp .Replace(tmp,"\""+tmp+"\"");引号中如果有 " 应该用 转义字符