java 中的字符串中想包含双引号

来源:互联网 发布:2016淘宝假货怎么存活 编辑:程序博客网 时间:2024/05/16 07:44

eg:   outStr = "{\"rows\":" + gson.toJson(list) + "}";

使用\"   

原创粉丝点击