首页 > Web开发 > 详细

.net list<int>、int[]参数类型 前端调用传参方法

时间:2019-05-17 13:33:34      阅读:329      评论:0      收藏:0      [点我收藏+]
 $.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 类型参数

 

.net list<int>、int[]参数类型 前端调用传参方法

原文:https://www.cnblogs.com/xhxsk/p/10880791.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!