实现了分页、表格
js代码
$(function(){
$('#dg').datagrid({
url : 'dbtest.json',
columns : [[{
field : 'code',
title : 'Code',
width : 100
}, {
field : 'name',
title : 'Name',
width : 100
}, {
field : 'price',
title : 'Price',
width : 100,
align : 'right'
}]]
});
});