我是通过JSONP列表检索信息和我越来越控制台浏览器中出现以下错误:“意外的标记:”错误JSONP商店
我的店:
Ext.define ('Projeto.store.Mural', {
extend 'Ext.data.Store'
requires: [
'Projeto.model.Mural'
]
config: {
autoLoad: true,
model: 'Projeto.model.Mural'
storeId 'MuralStore'
Proxy {
type: 'jsonp'
url: 'http://URL/mural'
reader: {
type: 'json',
rootProperty: 'rows'
}
}
}
});
我的列表:
Ext.define ('Projeto.view.MuralList', {
extend 'Ext.dataview.List'
alias: 'widget.murallist'
config: {
loadingText: 'Loading ...',
store: 'MuralStore'
itemTpl: [
'<div> Message: {message} </ div>
]
}
});
JSON返回我的网址:
{
"rows": [
{
"lookup": "yyyy"
"dateTime", "10/10/1970"
"id": "1",
"message": "yyyy"
}
{
"lookup": "dsdfasfsadf"
"dateTime", "15/05/2012"
"id": "2",
"message": "dsdfasfsadf"
}
]
}
有谁知道为什么错误,因为JSON的格式是有效的。
谢谢。
itemTpl:的值缺少结尾引号,这是一个错字还是它的外观? – 2012-04-26 18:05:37
它错字。 - @DiêgoNunes – 2012-04-26 20:45:17