: "예기치 않은 토큰"오류 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'
}
}
}
});
마이리스트 :
을{
"rows": [
{
"lookup": "yyyy"
"dateTime", "10/10/1970"
"id": "1",
"message": "yyyy"
}
{
"lookup": "dsdfasfsadf"
"dateTime", "15/05/2012"
"id": "2",
"message": "dsdfasfsadf"
}
]
}
,369 :
Ext.define ('Projeto.view.MuralList', {
extend 'Ext.dataview.List'
alias: 'widget.murallist'
config: {
loadingText: 'Loading ...',
store: 'MuralStore'
itemTpl: [
'<div> Message: {message} </ div>
]
}
});
는 JSON 내 URL을 반환
JSON이 유효한 형식이므로 아무도 이유를 알 수 있습니까?
감사합니다.
itemTpl에 대한 값은 닫는 인용 부호가 누락되었거나, 오타 또는 실제로 보이는 모양입니까? –
typ. - @ Diêgo Nunes –