第一种方式
前台
$.post("/home/test", { ck: { 0: "c", 1: "k"} }, function (data) { }, "text");
后台
public ActionResult test(FormCollection fc)
{
string temp = fc["ck[0]"]; // string temp = Request["ck[0]"];
//string tmep =fc["ck[1]"];
return View();
}
第二种方式
前台
$.post("/home/test"," ck=c&ck=k",function(data){},"text");
后台
public ActionResult test(FormCollection fc)
{
string [] arry=fc["ck"].split(",");
string data1=arry[0]; //c
string data2=arry[1]; //k
}