如题,以ASP.NET MVC为例,解决办法如下:
控制器中:
public JsonResult Test()
{
return Json(json, "text/html");
} 视图中:
$.post("/controller/action/", function (data) {
data = JSON.parse(data);
});
2023-08-30 13:33:52
如题,以ASP.NET MVC为例,解决办法如下:
控制器中:
public JsonResult Test()
{
return Json(json, "text/html");
} 视图中:
$.post("/controller/action/", function (data) {
data = JSON.parse(data);
});