//name: datagrid的ID
function setPager(name) {
var p = $('#' + name).datagrid('getPager');
$(p).pagination({
beforePageText: '第',
afterPageText: '页 共 {pages} 页',
displayMsg: '当前显示 {from} - {to} 条记录 共{total} 条记录'
});
}