SpringMVC 接收 数组参数 @RequestMapping(value = "/xxx")@ResponseBodypublic Map queryXXX(@RequestParam(value = "payTypeList[]") String[] payTypeList, Model model) { }var url = "";var searchData = { payTypeList: $("#payType").val(), ...
@RequestMapping(value = "/xxx") @ResponseBody public MapqueryXXX(@RequestParam(value = "payTypeList[]") String[] payTypeList, Model model) { } var url = ""; var searchData = { payTypeList: $("#payType").val(), ... }; // ["1","4","5"] $.ajax({ type: "POST", url: url, data: searchData, dataType:"json", success: function (msg) { } });