在$.ajax中加入

traditional:true,  //加上此项可以传数组

后端用

 array = request.POST.getlist('ids')  #django接收数组

来接收数组