我的Ext.Ajax.request
. 当我使用它时它工作得很好prototype.js
,但我被建议不要使用它,因为它会导致 Ext 出现其他问题。
我的代码如下所示:
var me = this;
Ext.Ajax.Request({
url : 'index.php/ajax/login/',
method: 'POST',
timeout : 30000,
params : {
// Params here
},
scope: me,
success : me.onLoginRequestSuccess,
failure : me.onLoginRequestFailure
});
但它会产生这个错误:
Ext.Ajax.Request is not a function
在
failure : me.onLoginRequestFailure
任何人都知道这个错误是什么意思以及我该如何解决它?
问候,