1
var writer = new Ext.data.JsonWriter({
encode: true,
writeAllFields: false
});
var reader = new Ext.data.JsonReader({
idProperty: 'id',
root: 'data',
}, [
{name: 'id'},
{name: 'status'},
{name: 'login'},
{name: 'fio'},
{name: 'description'},
{name: 'create_date'}
]);
var proxy = new Ext.data.HttpProxy({
api: {
read : '/test/read.php',
create : '/test/create.php',
update : '/test/update.php',
destroy : '/test/destroy.php'
}
});
var store = new Ext.data.Store({
proxy: proxy,
reader: reader,
writer: writer,
autoLoad: true,
autoSave: false
});
我需要HTTPPROXY PHP例如創建,更新或毀滅,我不如何已瞭解所有保存用php(發送參數?)?
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx