【发布时间】:2013-03-05 05:04:31
【问题描述】:
这是我尝试构建的一个简单示例作为练习,我的 DataSource 对象返回时没有数据。
var data = new kendo.data.DataSource({
transport: {
read: {
url: "data.json",
dataType: "json"
}
}
});
console.dir( data );
数据.json
[
{
"text": "Brand One"
},
{
"text": "Brand Two"
},
{
"text": "Brand Three"
},
{
"text": "Brand Four"
}
]
有什么想法吗?
【问题讨论】:
标签: javascript json kendo-ui