本人微信公众号"aeolian"~

SpringMVC数组参数

前端

var moduleids = moduleArr.join(',');  //一定要切换成,分割的字符串传到后台

后台

@RequestParam List moduleids
//或者String[] moduleids都可以接受,分割的字符串

 

 

点赞

Leave a Reply

Your email address will not be published. Required fields are marked *