前端:
<div>
<form id="actionfrom" action="Add">
<table>
<tr>
<td>姓名:</td>
<td>
<input type="hidden" name="Index" value="1" />
<input type="text" name="[1].Name" id="[1].Name" value="张三" />
</td>
<td>年龄 :</td>
<td>
<input type="text" name="[1].Age" id="[1].Age" value="18" />
</td>
</tr>
<tr>
<td>姓名:</td>
<td>
<input type="hidden" name="Index" value="2" />
<input type="text" name="[2].Name" id="[2].Name" value="张三" />
</td>
<td>年龄 :</td> <td> <input type="text" name="[2].Age" id="[2].Age" value="18" /> </td>
</tr>
<tr>
<td colspan="4">
<input type="submit" value="提交" />
</td>
</tr>
</table>
</form>
</div>
后台:
[HttpPost]
public ActionResult Add(List<Student> li)
{
return View(li);
}