转义示例

        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;
        }

 

posted @ 2020-11-04 10:40  恋上微笑的天使  阅读(81)  评论(0编辑  收藏  举报