easyui的datagrid怎么用
<script>$(function(){$('#t_user').datagrid({title:'用户列表信息',width:700,height:400,fitCo...
<script>
$(function(){
$('#t_user').datagrid({
title:'用户列表信息',
width:700,
height:400,
fitColumns:true,
url:'datagrid_list.json',
columns:[[
{field:'itemid',title:'Item ID',width:60,align:'center'},
{field:'itemid',title:'Item ID',width:60,align:'center'},
{field:'itemid',title:'Item ID',width:60,align:'center'},
{field:'itemid',title:'Item ID',width:60,align:'center'},
{field:'itemid',title:'Item ID',width:60,align:'center'}
]]
});
});
</script>
</head>
<body >
<table id="t_user"></table>
</body>
</html>
json数据
{"total":28,"rows":[
{"productid":"FI-SW-01,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
{"productid":"FI-SW-02,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
{"productid":"FI-SW-03,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
{"productid":"FI-SW-04,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
{"productid":"FI-SW-05,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
{"productid":"FI-SW-01,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
]}
谁帮我看看错在哪里了,数据不显示 展开
$(function(){
$('#t_user').datagrid({
title:'用户列表信息',
width:700,
height:400,
fitColumns:true,
url:'datagrid_list.json',
columns:[[
{field:'itemid',title:'Item ID',width:60,align:'center'},
{field:'itemid',title:'Item ID',width:60,align:'center'},
{field:'itemid',title:'Item ID',width:60,align:'center'},
{field:'itemid',title:'Item ID',width:60,align:'center'},
{field:'itemid',title:'Item ID',width:60,align:'center'}
]]
});
});
</script>
</head>
<body >
<table id="t_user"></table>
</body>
</html>
json数据
{"total":28,"rows":[
{"productid":"FI-SW-01,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
{"productid":"FI-SW-02,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
{"productid":"FI-SW-03,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
{"productid":"FI-SW-04,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
{"productid":"FI-SW-05,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
{"productid":"FI-SW-01,"unitcost":10.00,"status":"P","listprice":36.60,"attr1":"Large","itemi":"EST-1"},
]}
谁帮我看看错在哪里了,数据不显示 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询