Display name to get the value of startTime Button button at the beginning of a return to the values of all startTime of the interface, suitable for automatic subkey value addition and subtraction
var starttime1=$('botton[name^="startTime"]').map(function(){return this.innerText}).get();
var ticket1=$('input[name^="ticket"]').map(function(){return this.value}).get();
All values obtained, and the value taken one by one and then put into the object encapsulates the data in the json
was mapArray = [];
for (i = 0; i < expense1.length; i++) {
var map = {
"fromDate" : starttime1[i],
"transMoney" : ticket1[i]
};
mapArray.push(map);
var ItemList = JSON.stringify(mapArray);
}