ajax向后台传递数组
var arrays=new Array()
$.ajax({
url: "/xxx",
type: "GET",
data: {
"arrys": arrays
},
traditional: true,//这里设置为true
success: function(data) {
//do sth...
}
});
ajax向后台传递数组
var arrays=new Array()
$.ajax({
url: "/xxx",
type: "GET",
data: {
"arrys": arrays
},
traditional: true,//这里设置为true
success: function(data) {
//do sth...
}
});