jQuery.ajax向后台传递数组问题


$.ajax({

url: "/xxx",

type: "GET",

data: {

"boxIds": boxIds,

"boxType": 0,

"time": new Date().getTime()

},

traditional: true,//这里设置为true

success: function(data) {

//do sth...

}

});