如何将数组发送到控制器?我试过这样:
window.location.href = "/SomeController/SomeMethod?fields=" + SomeArray;
所以:
window.location.href = "/SomeController/SomeMethod?fields[][]=" + SomeArray;
在控制器中我收到:
public ActionResult SomeMethod(int[][] fields) // here fields = null;
{
// Some code
}