1. 程式人生 > >datagrid查詢條件字表關聯條件查詢問題

datagrid查詢條件字表關聯條件查詢問題

datagrid載入列表以後查詢條件有字表需要有查詢條件

對form進行格式化即可

$.serializeObject = function(form) {
var o = {};
$.each(form.serializeArray(), function(index) {
if (o[this['name']]) {
o[this['name']] = o[this['name']] + "," + this['value'];
} else {
o[this['name']] = this['value'];
}
});
return o;
};