标签:end scripts pts tty json str string asc type
private void WriteJson(object o)
{
JavaScriptSerializer serializer = new JavaScriptSerializer();
Context.Response.ContentType = "text/json";
string str = serializer.Serialize(o);
logger.Info(" 结果: " + str);
Context.Response.Write(str);
Context.Response.End();
}
标签:end scripts pts tty json str string asc type
原文地址:http://www.cnblogs.com/wdnrsjd/p/6951576.html