easyui前台显示数据

<script type="text/javascript">
$(function(){
initTable();
});
function initTable(){
//init table
$("#tt").datagrid({
//cotrolle/action
url:'/Controller/Action',
title:'title',
width:700,
heigth:400,
fitColumns:true,
idField:'ID',
loadMsg:'正在加载用户信息',
pagination:true,
singleSelect:false,
pageSize:10,
pageNumber:1,
pageList:[10,20,30],
queryParams:{},
columns:[
[
{ field: 'ck', checkbox: true, align: 'left', width: 50 },
{ field: 'ID', title: '用户的编号', width: 80 },
{ field: 'UName', title: '用户名', width: 120 },
{ field: 'Pwd', title: '密码', width: 120 },
{ field: 'Remark', title: '备注', width: 120 },


]
],
toolbar:[
 {
                        id: 'btnDownShelf',
                        text: '添加用户',
                        iconCls: 'icon-add',
                        handler: function () {
                            //点击添加按钮的时候,弹出一个添加的对话框
                            // alert("dd");
                            addClickEvent();
                        }
                    },
]
})
}
</script>

猜你喜欢

转载自blog.csdn.net/qq_40098572/article/details/83821878