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 },
]],

列属性已经定义好,麻烦帮忙补充接下来的代码(数据传参)
展开
 我来答
  • 你的回答被采纳后将获得:
  • 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏5(财富值+成长值)
超级帅2014
2015-08-04 · TA获得超过303个赞
知道大有可为答主
回答量:1077
采纳率:0%
帮助的人:813万
展开全部
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
});
}
}
});
本回答被提问者和网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式