Load method easyui local json file

Load method easyui local json file

This is a problem I encountered in the work summary, out to share with you: a local method json file easyui load, (there is a problem there is no way paging, there is a solution, then welcome to comment below and our common progress)

<table id="tt" width="100%" class="easyui-datagrid" style="height:300px"></table>
  • 1
$('#tt').datagrid({
            title:'业务描述',
            iconCls:'icon-save',
            method:'get',//这个是最重要的,不写这个table加载不出来 pagination:true, url:'datagrid_data1.json', height: 300, nowrap:true, fitColumns: true, onLoadSuccess:function(data){ $(this).datagrid('doCellTip',{'max-width':'300px','delay':300}); }, columns:[[ {field:'itemid',title:'申请人',width:200,align:'center'}, {field:'productid',title:'业务唯一编号',width:200,align:'center'}, {field:'listprice',title:'业务受理部门',width:200,align:'center'}, {field:'unitcost',title:'申请人',width:200,align:'center'}, {field:'attr1',title:'业务唯一编号',width:200,align:'center'}, {field:'status',title:'业务受理部门',width:200,align:'center'} ]] })

Guess you like

Origin www.cnblogs.com/bwdblogs/p/11112736.html