$ .Ajax transmission js array, spring receiving abnormal

Today test, a strange problem

 

$ .Ajax transmission js array, spring receiving this array, the emergence of a strange phenomenon, if only one element of the array, and the last element of a character string that is a comma, ending with the words,

spring will automatically remove the comma, not an error. . . .

If the array contains two or more, it can display this comma normal. . . .

If it were the other end of the symbols can be used normally! ! ! !

My guess is ajax or spring to deal with the data, an element, as a default string, resulting in the extra comma separators removed

I do not know why, Baidu did not find information on this, and this record

Guess you like

Origin www.cnblogs.com/c2g5201314/p/11714569.html