【发布时间】:2013-04-07 05:35:24
【问题描述】:
如何将数组发送到控制器? 我试过了:
window.location.href = "/SomeController/SomeMethod?fields=" + SomeArray;
等等:
window.location.href = "/SomeController/SomeMethod?fields[][]=" + SomeArray;
在控制器中我收到:
public ActionResult SomeMethod(int[][] fields) // here fields = null;
{
// Some code
}
【问题讨论】: