What does “this” refer to in the following javascript?
问题 DISCLAIMER: I am asking about a specific use of this , not what this is used for in general. So, please no google/copy/paste speed answers (: I have the javascript/jquery code below: var req = {}; function getData() { var fromPage = 0; var toPage = 1; req = $.ajax({ url: "/_vti_bin/lists.asmx", type: "POST", dataType: "xml", data: xmlData, complete: onSuccess, error: function (xhr, ajaxOptions, thrownError) { alert("error: " + xhr.statusText); alert(thrownError); }, contentType: "text/xml;