在Asp.Net MVC中使用ModelBinding构造Array、List、Collection以及Dictionary
在asp.net mvc中,我们可以在html表单中使用特定的格式传递参数,从而通过model binder构造一些集合类型。
第一种方式
比如这样一个方法
public ActionResult Infancy(Person[] people)
{
// ...
}
并在表单中添加这些input元素
<input type="text" name="people[0].Fir
http://cyqdata.cn/cnblogs/article-detail-12059