zoukankan      html  css  js  c++  java
  • js传递集合到mvc

     var applicationList = {};

    $(".del-add a").each(function (index) {
                var picName = $(this).text();
                var imgId = $(this).parents(".del-add").attr("id");
                //已有的数据不用提交了
                applicationList["applicationList[" + index + "].AppleAnnex"] = picName;
                applicationList["applicationList[" + index + "].Id"] = imgId;
            })

    后台接收方法

     public ActionResult ApplicationTemporary(Food_IngreDients_Apply model, List<Food_Apple_Annex> ApplicationList, List<Food_ApplyLibrary> LibrayList, int ApplyFlag)

  • 相关阅读:
    洛谷P1272 重建道路
    uva 10004
    uva10305
    uva 10044
    uva 120
    uva699
    uva297
    uva11111
    uva 101
    uva10152 ShellSort
  • 原文地址:https://www.cnblogs.com/xgyweb/p/6552384.html
Copyright © 2011-2022 走看看