我有一个代码:什么是AjaxAdapter和什么是query()?
req = new AjaxAdapter;
req.dataType = 'json';
return req.query('GET', url, request, function(responseServer, status, xhr) {
var json;
json = responseServer.data;
return response(json);
}, function(jqXHR, textStatus, errorThrown) {
var exception;
exception = jQuery.parseJSON(jqXHR.responseText);
return showError(exception);
});
而且我不明白。那么query()
函数是什么?我无法在jQuery文档中找到它。见我的例子中,这个函数有5个参数:
- 得到
- 网址
- 要求
- 函数返回数据(响应)
- 功能是通话时的错误
请求是什么?我在哪里可以找到query()
函数的文档?
这不是jQuery。 – Sampson
我认为问题是:什么是AjaxAdapter?你能找到AjaxAdapter的定义吗? –
https://groups.google.com/forum/?fromgroups=#!topic/wireit/psZEjY3L3Go – jbabey