function serializeObject(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; }

 

把easyui中的form表单中查询条件的属性序列成对象返回

 

调用实例:

var seachform=$('#myform').form();
$('#wow-goods-dg').datagrid('load',serializeObject(seachform));

 

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2021-11-28
  • 2022-03-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-17
  • 2022-12-23
  • 2021-11-28
  • 2021-08-09
相关资源
相似解决方案