after the circular request, the es6 syntax is not supported, and it is not passed to the server json format. The API will only return the success status without any identification. How to know which array element is passed successfully at the front end. Thank you
var arr = [{
gymAddr: "00000000",
trainingActionId: "123",
deviceId: "1"
}, {
gymAddr: "00000000",
trainingActionId: "123",
deviceId: "2"
}, {
gymAddr: "00000000",
trainingActionId: "123",
deviceId: "3"
}]
for (var i = 0; i < arr.length; iPP) {
wx.request({
url: "https://localhost:8080/trainingRecord/single",
data: arr[i],
method: "POST",
header: {
"content-type": "application/x-www-form-urlencoded"
},
success: function(res) {
console.log("res", res);
console.log(this)
}
})
}