当我们使用正常的在交互中,需要传递数组是,例如
$.ajax({
url: ‘’,
data: {'userIdArr': ['00','11']},
type: 'post',
success:function(data){
}
})
这样在后台通过String[] userIdArr, 是接收不到值的,正确的做法是添加如下:
traditional:true
当我们使用正常的在交互中,需要传递数组是,例如
$.ajax({
url: ‘’,
data: {'userIdArr': ['00','11']},
type: 'post',
success:function(data){
}
})
这样在后台通过String[] userIdArr, 是接收不到值的,正确的做法是添加如下:
traditional:true