我收到一个我不知道要解决的错误;
错误 :Unable to load data using the supplied configuration.
Open in Browser: http://localhost/app/p/name.php
Ext.define('MyApp.store.MyJsonPStore1', {
extend: 'Ext.data.Store',
requires: [
'MyApp.model.myModel'
],
config: {
autoLoad: true,
model: 'MyApp.model.myModel',
storeId: 'MyJsonPStore1',
proxy: {
type: 'jsonp',
url: 'http://localhost/app/p/name.php',
reader: {
type: 'json'
}
},
listeners: [
{
fn: 'onJsonpstoreBeforeLoad',
event: 'beforeload'
}
]
},
onJsonpstoreBeforeLoad: function(store, operation, eOpts) {
store.load({
params: {note: 'HELLO'}
});
}
});
返回的http://localhost/app/p/name.php
是{"note":"Hell"}