阅读(2072) (1)

EasyUI Datagrid 显示中文方式

2017-10-16 13:42:47 更新

1.引用中文架包 引用中文翻译文件(easyui-lang-zh_CN.js)可以全部显示为中文。

<script type="text/javascript" src="javascripts/easyui/locale/easyui-lang-zh_CN.js"></script>

2.利用easyui接口修改

function pagToo(tabId,count) {// 设置分页控件 var p = $('#'+tabId).datagrid('getPager'); $(p).pagination('refresh', { total : count ? count : 0, beforePageText : '第', afterPageText : '页 共 {pages} 页', displayMsg : '当前显示 {from} - {to} 条记录 共 {total} 条记录', }); }