json
后台: string data = "{\"total\":" + source.TotalRecordCount + ",\"source\":" + Newtonsoft.Json.JsonConvert.SerializeObject(source.Source, new Newtonsoft.Json.Converters.IsoDateTimeConverter() { DateTimeFormat = "yyyy-MM-dd HH:mm:ss" }) + "}";
context.Response.Write(data);
前台
var obj=$.parseJSON(data) $("#tbHtml").html(obj.trs);
posted on
2017-09-08 18:16
Apex_233 阅读(
...) 评论(
)
编辑
收藏
转载于:https://www.cnblogs.com/Apex233/p/7495881.html
相关资源:net.sf.json jar包 最全版