-1
錯誤這是我的JSonSctipt文件代碼:遺漏的類型錯誤對象對象對象有沒有方法「kendoUi」在解析
var data = [
{
"SearchResult": {
"assets": [
{
"agent": "6.1.0",
"id": 1,
"model": "Gateway1",
"modelId": 2,
"name": "Name",
"serialNumber": "Serial01"
},
{
"agent": "M2M",
"id": 2,
"model": "Gateway1",
"modelId": 3,
"name": "Name",
"serialNumber": "Serial02"
}
],
"searchCriteria": {
"paginationEnabled": false,
"rowsPerPage": -1,
"startRow": -1,
"totalAvailableRows": -1,
"alternateId": {
"@xsi.nil": "true"
},
"modelNumber": {
"@xsi.nil": "true"
},
"name": "*",
"serialNumber": {
"@xsi.nil": "true"
}
}
}
}
];
$("#grid").kendoGrid({
dataSource: {
data: data,
schema: {
data: function(rawData) {
return rawData[0].SearchResult.assets;
}
}
}
});
Thsi是我的index.html文件
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="cordova.js"></script>
<script src="kendo/js/jquery.min.js"></script>
<script src="kendo/js/kendo.mobile.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script src="scripts/hello-world.js"></script>
<script src="kendo/js/kendo.dataviz.min.js"></script>
<link href="kendo/styles/kendo.mobile.all.min.css" rel="stylesheet" />
<link href="styles/main.css" rel="stylesheet" />
</head>
<body>
<div id="grid"></div>
</body>
</html>
當我運行這個代碼未捕獲typeerror對象對象對象沒有方法'kendoUi'錯誤我越來越難以顯示數據在網格中,請告訴我我將如何解決它或任何一個請告訴我我將如何JSON解析在劍道UI
我們必須actully更改這個例子是什麼我在做第一所以我不能Understnd我將如何做Josn解析數據並在列表視圖或網格中打印是的這是部分Kedno UI請幫助我 – 2013-05-02 05:35:58