ASP.NET MVC在Controller中,把JsonResult转为JSON字符串

ASP.NET MVC在Controller中,把JsonResult转为JSON字符串

string json = new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(jsonResult.Data);
Response.Write(json);

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注