【发布时间】:2012-05-11 06:09:36
【问题描述】:
Ext.Ajax.request({
url: 'foo.php', // where you wanna post
success: passFn, // function called on success
failure: failFn,
params: { foo: 'bar' } // your json data
});
我正在关注How to post json data with extJS 并收到有关功能的问题。我看到我们可以在 passFn 和 failFn 区域中嵌入函数。但是,如果我希望这些功能在别处怎么办?在 Sencha Architect 中哪里可以创建这些函数并对其进行编码?
【问题讨论】:
标签: function extjs sencha-architect