第一种方式 
前台
  $.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
        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2021-06-29
  • 2021-12-02
  • 2022-12-23
  • 2021-12-27
猜你喜欢
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2021-11-14
  • 2021-08-29
相关资源
相似解决方案