110,567
社区成员
发帖
与我相关
我的任务
分享
public void ProcessRequest(HttpContext context)
{
int total;
Array data = GetData(context.Request, out total);
JObject result = new JObject();
result["total"] = total;
result["rows"] = new JArray(data);
context.Response.ContentType = "application/json";
context.Response.Write(result.ToString());
}
private Array GetData(HttpRequest request, out int total)
{
// 根据传入的参数返回获取的数组。
// 同时还要返回数据的总条数,当然如果不分页的话,就不需要这么麻烦了。
throw new NotImplementedException();
}