87,910
社区成员
发帖
与我相关
我的任务
分享
<body>
<table id="dg"></table>
<script>
$(function () {
$('#dg').datagrid({
url: '{"total":2,"rows":[{"code":"001","name":"jack"},{"code":"002","name":"Alice"}]}',
columns: [[
{ field: 'code', title: 'code', width: 100 },
{ field: 'name', title: 'name', width: 100 },
]]
});
})
</script>
</body>
<body>
<table id="dg"></table>
<script>
$(function () {
$('#dg').datagrid({
data: {"total":2,"rows":[{"code":"001","name":"jack"},{"code":"002","name":"Alice"}]},
columns: [[
{ field: 'code', title: 'code', width: 100 },
{ field: 'name', title: 'name', width: 100 },
]]
});
})
</script>
</body>