0
我使用下面的代碼從JSON文件中讀取數據:異常在
var source1 =
{
datatype: "json",
datafields: [
{ name: 'x' },
{ name: 'y' }
],
url: '..\sampledata\status.txt'
};
var dataAdapter = new $.jqx.dataAdapter(source1, { async: false, autoBind: true, loadError: function (xhr, status, error) { alert('Error loading "' + source1.url + '" : ' + error); } });
其拋出此異常:
[Exception... "" nsresult: "0x805e0006 (<unknown>)" location: "JS frame :: http://localhost:1397/scripts/jquery-1.8.2.js :: <TOP_LEVEL> :: line 8382" data: no]
爲jQuery的1.7.1.js它顯示相同的異常,但行8068
我無法得到的是與jqx dataAdapter相關的此錯誤還是來自.js文件。
我status.txt中包含的JSON數據
{
"StatusTable": [
{
"x": "quickydata",
"y": "137"
},
{
"x": "somestuff",
"y": "1210"
}
]
}
尋找一些解決方案/建議。
它是如何工作或影響>>> – user1260967
OKS我知道了...... thnxs – user1260967