后台: 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);