zoukankan      html  css  js  c++  java
  • .net list<int>、int[]参数类型 前端调用传参方法

     $.ajax({
                type: "POST",
                url: "/controller/action",
                data: {
                    
                    "Filesid": 数组
                },
                traditional: true,//用传统方式序列化数据
                dataType: "json",
    
                cache: true,
                success: function (data) {
                  
                },
    后端:list<int>
    Filesid 类型参数
     $.ajax({
                type: "POST",
                url: "/huizhendetail/DelSHExpertFiles",
                data: {
                    //Filesid: {0:20} JSON.stringify(a)
                    Filesid: { 0:12,1:23 }
                },
                traditional: true,//用传统方式序列化数据
                dataType: "json",
    
                cache: true,
                success: function (data) {
                    if (data.StatusCode == 'ok') {
                        
                    } else {
                        layer.msg(data.Message);
                    }
                },
    后端: int[]
    Filesid 类型参数
    
    
  • 相关阅读:
    3-8
    3-7
    3-5
    3-4
    3-3
    3-2
    3-1
    2-11
    2-10
    2-9
  • 原文地址:https://www.cnblogs.com/xhxsk/p/10880791.html
Copyright © 2011-2022 走看看