1

我的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 functionfailure : me.onLoginRequestFailure

任何人都知道这个错误是什么意思以及我该如何解决它?

问候,

4

1 回答 1

3

当然不是 - 它是request() http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Ajax-method-request

于 2012-07-02T12:03:15.357 回答