easyui用数据表格DataGrid将数据库内容传输到前台页面?
$(function(){InitTable();BindRegistButtonClickEvent();my_save();});functionInitTable(...
$(function () {
InitTable();
BindRegistButtonClickEvent();
my_save();
});
function InitTable() {
$('#dg_Article').datagrid({
title: '图书管理',
iconCls: 'eicon-sav',
nowrap: true,
autoRowHeight: true,
striped: true,
collapsible: true,
url: '/Book/MyQuery/',
rownumbers: true,
columns: [[
{ field: 'ck', checkbox: true },
{ field: 'ID', title: '编号', width: 50, sortable: true },
{ field: 'name', title: '书名', width: 100, sortable: true },
{ field: 'author', title: '作者', width: 100, sortable: true },
{ field: 'style', title: '类型', width: 100, sortable: true },
{ field: 'press', title: '出版社', width: 100, sortable: true },
]],
列属性已经定义好,麻烦帮忙补充接下来的代码(数据传参) 展开
InitTable();
BindRegistButtonClickEvent();
my_save();
});
function InitTable() {
$('#dg_Article').datagrid({
title: '图书管理',
iconCls: 'eicon-sav',
nowrap: true,
autoRowHeight: true,
striped: true,
collapsible: true,
url: '/Book/MyQuery/',
rownumbers: true,
columns: [[
{ field: 'ck', checkbox: true },
{ field: 'ID', title: '编号', width: 50, sortable: true },
{ field: 'name', title: '书名', width: 100, sortable: true },
{ field: 'author', title: '作者', width: 100, sortable: true },
{ field: 'style', title: '类型', width: 100, sortable: true },
{ field: 'press', title: '出版社', width: 100, sortable: true },
]],
列属性已经定义好,麻烦帮忙补充接下来的代码(数据传参) 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏5(财富值+成长值)
1个回答
展开全部
var width = $(window).width()-80;
var height = $(window).height()-120;
stView_layout = $('#stView_layout').layout({
width: width,
height: height
});
station_view = $('#stationView').window({
title: '测站导航',
left:50,
top:80,
width: width,
modal: false,
shadow: false,
closed: true,
height: height,
onResize:function(w,h){
if(stView_treegrid){
stView_treegrid.treegrid({
width:w-20,
height:h-260
});
}
}
});
var height = $(window).height()-120;
stView_layout = $('#stView_layout').layout({
width: width,
height: height
});
station_view = $('#stationView').window({
title: '测站导航',
left:50,
top:80,
width: width,
modal: false,
shadow: false,
closed: true,
height: height,
onResize:function(w,h){
if(stView_treegrid){
stView_treegrid.treegrid({
width:w-20,
height:h-260
});
}
}
});
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询