中国开发网: 论坛: 程序员情感CBD: 贴子 726062
leejd
RESTful
// A single store using the Proxy, Reader and Writer together
// through a RESTful interface
var store = new Ext.data.Store({
id: 'user',
restful: true, // <-- This Store is RESTful
proxy: proxy,
reader: reader,
writer: writer // <-- plug a DataWriter into the store just as you would a Reader
});




//define and we'll handle the rest
var proxy = new Ext.data.HttpProxy({
api: {
read : 'app.php/users/read',
create : 'app.php/users/create',
update : 'app.php/users/update',
destroy : 'app.php/users/destroy'
}
});

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录