Datagrid in easyUI
The datagrid is prone to errors. To sum up, you can avoid detours and avoid making further mistakes.
1. Two attributes: pageSize and pageList. The pageSize must be defined in pageList. Otherwise, an error is returned.
2. When re-load, the input parameter must be json, and the data in the previous queryparam will not be included
Function doSearch (obj, cls, datagridId) {var data = $ (obj ). parent (). find ("fieldset "). serializeArray (); var test = "{"; test + = data. map (function (obj) {return obj. name + ":" + "'" + obj. value + "'";}); test + = ", cls:'" + cls + "'"; test + = "}"; // convert to a json object, fucktest = eval ("(" + test + ")"); $ ("#" + datagridId ). datagrid ('load', test );}Previously, I simply pieced together a string and found that the string sent by the request has become one character and one character.
3. The front-end level needs to be enhanced!