The
serialize() function is used to serialize a set of form elements and encode the form content into a string for submission.
The serialize() function is often used to serialize form content for AJAX submission.
This function mainly splices the name and value of the valid form controls used for submission into a text string that can be directly used for form submission. The string has been processed by standard URL encoding (Character setEncoded as UTF-8).
This function will not serialize form controls that do not need to be submitted, which is consistent with regular form submission behavior. For example: form controls not within the