easyui datagrid设置一开始不加载数据

解决办法就是:一开始的url属性设置为空,例如:

<table id="dg" title="用户管理" class="easyui-datagrid" style="fit:false"
            url=""
            toolbar="#toolbar" pagination="true"
            rownumbers="true" fitColumns="true" singleSelect="true">
...
</table>

然后在查询的时候对应如下代码:

    $('#dg').datagrid({url: '/tz_lawsuits_get'});
原文地址:https://www.cnblogs.com/zifeiy/p/9767385.html