转义示例
private string getinfo(string zjhm,string slid) { //string abc = @"{""zjhm"":""123456"",""slid"":""2010001""}"; //string abc = @"{""zjhm"":""" + zjhm + @""",""slid"":""" + slid + @"""}"" "; string abc = "{\"zjhm\":\""+ zjhm + "\",\"slid\":\""+ slid + "\"}"; return abc; }
本博有部分内容来自网络,如有问题请联系:hebeilijianghua@qq.com,并注明来自博客园。