为什么我在视图中看不到任何内容?
的console.log(d);输出这个......
[{"id":1,"name":"a","age":1,"photo":"","group":"A"},
{"id":5,"name":"alan","age":22,"photo":"","group":"A"},
{"id":3,"name":"b","age":2,"photo":"","group":"B"},
{"id":2,"name":"c","age":3,"photo":"","group":"C"},
{"id":4,"name":"graham","age":43,"photo":"","group":"G"}]
代码:显示
console.log(d);
$("#customers-group").kendoMobileListView({
dataSource: kendo.data.DataSource.create({data: d, group: "group"}),
template: "${name}",
fixedHeaders: true
});
查看
<div data-role="view" id="customers" data-title="My Data" data-layout="layout-customers" data-show="show">
<ul id="customers-group"></ul>
</div>
答案 0 :(得分:0)