我以前是这么做的:var codes=[1,2,3];//定义数组$.ajax({ type: "POST", //用POST方式传输 dataType: "json", //数据格式:JSON url: ..., //目标地址 traditional: true, data: { codes:codes, }, error: function (XMLHttpRequest, textStatus, errorThrown) {...}, success: function (msg){...}});注意traditional: true不能少,后台String[] codes接收参数,然后遍历取值,for(int m=0;m<codes.length;m++){String code=codes[m];...}