0
我收到一個錯誤,我無法解決;傳遞額外參數時出錯 - BEGINNER
的錯誤: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"}