ローカルのJSONファイルをロードeasyui方法

ローカルのJSONファイルをロードeasyui方法

これは私が仕事の概要に遭遇した問題であり、アウトあなたと共有する:ローカルメソッドのJSONファイルeasyui負荷を、(手立てページングが存在しない問題があり、解決策があり、その後、以下のコメントを歓迎し、我々の共通の進捗状況)

<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'} ]] })

おすすめ

転載: www.cnblogs.com/bwdblogs/p/11112736.html