Kor*_*nme 5 .net asp.net-mvc jquery json
其实我的问题很简单.我认为.但不幸的是,Google这次无法帮助我.我希望以这种格式在视图中返回JSON:
[[0,"Mark Kordon",null,"My HTML - Mark Kordon"],[1,"John Doe",null,"John Doe Markup"]]
Run Code Online (Sandbox Code Playgroud)
这怎么可能?
听起来您想要做的就是从控制器返回模型作为 JsonResult:
public ActionResult Index()
{
return Json(yourModel);
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
482 次 |
| 最近记录: |