1
在ExtJS 3中,我想調用一個方法,如下所示。看起來像服務器端的方法沒有被調用。我不能使用'directFn'這種方式?如何解決它?ExtJS呼叫directFn,失敗
服務器端是C#。
感謝
function showDetail(recordId) {
Ext.Ajax.request({
directFn: Report.showDetail,
success: received,
failure: function() { alert('failure'); },
params: { recordId: recordId }
});
}
function received(response) {
var x = Ext.decode(response.responseText);
alert(x);
}
你在哪裏看到請求方法的directFn參數? – jjathman