JqueryEasyUI的DataGrid数据查询问题

来源:互联网 发布:原材料追溯软件 编辑:程序博客网 时间:2024/04/29 06:55
          最近使用DataGrid进行数据展示的时候,当从前台从combobox传入查询参数的时候,在进行参数切换的时候,提交的参数仍然是上次的参数,后来发现问题的原因。原来的Datagird是通过html方式写的,如下所示
<pre name="code" class="html"><table id="tt" class="easyui-datagrid" style="width:100%;min-height:80%"url="data/tianjin.php"iconCls="icon-save"rownumbers="true"pagination="true" data-options="title:'',             pageSize: 15,            pageList: [15,20,25]       ">.......</table>

        改成完全的js方式去掉class=“easyui-datagrid”方式,问题得到解决

$('#tt').datagrid({        title:'',            iconCls:"icon-save",        rownumbers:"true",        pagination:"true",         pageSize: 15,        pageList: [15,20,25]            });
      html部分

<table id="tt"></table>
怀疑是通过html方式提交和js方式传入参数的时间问题或者缓存问题?


0 0
原创粉丝点击