When using the DataGrid component of Easyui, the query parameter passed at the query is an object type and, for convenience, extends the serialization method in jquery, calling the method to serialize all the data for the form
$.fn.serializeobject=function () {
var obj=new Object ();
$.each (This.serializearray (), function (Index,param) {
if (!) ( Param.name in obj)) ({
obj[param.name]=param.value;
}
});
return obj;
};
Specific use:
<%@ page language= "java" contenttype= "text/html; Charset=utf-8 "pageencoding=" UTF-8 "%> <% @include file="/web-inf/views/inc/taglibs.jsp "%> <!
DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd" >
Above this jquery serialization form object's simple realization is small series to share to everybody's content, hoped can give everybody a reference, also hoped that everybody supports the cloud habitat community.