天天看点

jquery 中$.post获取MVC Controller中JsonResult返回包含LIst<Model>类型的子List<Model>的高级使用方法

比如JsonResult中返回return Json(models);的models结构如下:

jquery 中$.post获取MVC Controller中JsonResult返回包含LIst<Model>类型的子List<Model>的高级使用方法

models返回含有四个集合的序列,每个集合的序列中又包含一个子集合序列“Child”。

问题是如果我们使用Jquery的$.post应该怎么循环出这两个集合序列中的数据呢?

方法如下:

学习交流群:364976091

继续阅读