.serialize() & .serializeArray() in jQuery
.serialize()
Description: Encode a set of form elements as a string for submission.
Returns: String
Ref: https://api.jquery.com/serialize/
.serializeArray();
Description: Encode a set of form elements as an array of names and values.
Returns: Array
Ref: https://api.jquery.com/serializeArray/
.param();
Description: Create a serialized representation of an array, a plain object, or a jQuery object suitable for use in a URL query string or Ajax request. In case a jQuery object is passed, it should contain input elements with name/value properties.
Ref: https://api.jquery.com/jQuery.param/
评论
发表评论