📅  最后修改于: 2022-03-11 15:02:48.009000             🧑  作者: Mango
// At the time of writing best bet is to do this:
// Construct a string from your response and separate the items with a comma
// Lets say your request sends response a string like this: '1,2'
$.ajax({
url: '',
//data: { "id": id },
//async: false,
success: function (data) {
var response = data.split(",");
var first = response[0];
var second = response[1];
// ... etc.
}
}