Why should I get a sequence of time and form submissions and post

When the form submission data serialization Why

get and post

  1. is added to get back to the plaintext data submission url, post ciphertext data is encapsulated into the body of the request. Whether or submit ajax are like this.
  2. Submit data submitted part of the default price manner, the submit the get and post are identified through may be directly serialized and the serialized format to an intermediate format plus & (note that this is not the only sequence of the logo, serialization function is not only that).
  3. Serialized data can be directly identified back-end. All the data in the form of key-value pairs into the background can be recognized by way of key-value pairs. No sequence data is unrecognizable after, or illegal duplication unreasonable data. So in order to submit data must be serialized.
  4. Directly to the data with the data behind url url is subject to length restrictions. get submission data encapsulated in encapsulating data submitted in the request url behind the post body is not static, may be provided to change later.

Serialization when the ajax submit

  1. Ajax submit the form data is not in default serialization to serialize it (get and post are not). Serialization divided into two ways. Are serialize () and serializeArray ().
  2. serialize () & sequences into the middle of the way. Serialization is not the only plus in the middle of a & on it, as well as functions such as sorting data. This way the same sequence and submit format is submitted, can be directly received.
  3. serializeArray () json serialized format. This data can be serialized and submit submit that the default mode when the recipient plus @Requestbody as receive data.

Guess you like

Origin www.cnblogs.com/macht/p/11622569.html