1

为什么我看不到任何东西?

控制台.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>
4

1 回答 1

0

确保您使用的是最新版本的剑道。因为剑道最新版本将支持分组,固定标题概念..

您的代码运行良好。

click

这里是工作样本

于 2013-10-29T12:20:35.840 回答