</div>


2.将DataGrid中的toolbar属性设置为搜索栏div的id。
eg:
toolbar: '#search'
见上面DataGrid的2.2


3.添加响应函数
function doSearch() {
        $('#historydisplay').datagrid('load', {
            storenum: $('#storenum').val(),
            datefrom: $('#datefrom').val(),
            dateto: $('#dateto').val()
        });
}


4.添加相应的后台代码,对前端传过去的搜索字段进行处理
具体代码见DataGrid的步骤4.

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-11-21
  • 2021-05-31
  • 2021-12-04
猜你喜欢
  • 2021-10-21
  • 2022-02-22
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2021-11-16
相关资源
相似解决方案