日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

EasyUI框架分页实现

發布時間:2023/12/2 编程问答 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 EasyUI框架分页实现 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

EasyUI添加分頁組件

    • demo

demo

#創建數據網格(DataGrid),設置 ‘pagination’ 屬性為 true,它將在數據網格(datagrid)的底部生成一個分頁(pagination)工具欄。pagination將發送兩個參數到服務器,為了從遠程服務器端加載數據,設置 ‘url’ 屬性, url地址發起ajax請求. 動態的添加分頁的參數.
page:頁碼,起始值 1。
rows:每頁顯示行。
服務器端應該返回 JSON 格式數據。

<table class="easyui-datagrid" id="itemList" title="商品列表" data-options="singleSelect:false,fitColumns:true,collapsible:true,pagination:true,url:'/item/query',method:'get',pageSize:20,toolbar:toolbar"><thead><tr><th data-options="field:'ck',checkbox:true"></th><th data-options="field:'id',width:60">商品ID</th><th data-options="field:'title',width:200">商品標題</th><th data-options="field:'cid',width:100,align:'center',formatter:KindEditorUtil.findItemCatName">葉子類目</th><th data-options="field:'sellPoint',width:100">賣點</th><th data-options="field:'price',width:70,align:'right',formatter:KindEditorUtil.formatPrice">價格</th><th data-options="field:'num',width:70,align:'right'">庫存數量</th><th data-options="field:'barcode',width:100">條形碼</th><th data-options="field:'status',width:60,align:'center',formatter:KindEditorUtil.formatItemStatus">狀態</th><th data-options="field:'created',width:130,align:'center',formatter:KindEditorUtil.formatDateTime">創建日期</th><th data-options="field:'updated',width:130,align:'center',formatter:KindEditorUtil.formatDateTime">更新日期</th></tr></thead> </table>

總結

以上是生活随笔為你收集整理的EasyUI框架分页实现的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。