3
var xhrReq;
function tpvAjaxPost(json) {
  if(xhrReq !== undefined) {
      xhrReq.abort();
      xhrReq = undefined;
  }
  xhrReq = $.post("inc/ajax/tpv.php", json, function (data) {
      if(typeof (data['message']) !== 'undefined') {
          tpvHandleErrors(data['message']);
      } else {
          tpvHandleResults(json['action'], data);
      }
  }, "json").always(function() { xhrReq = undefined; });
}

为什么我得到:TypeError:xhrReq.abort 不是函数????

4

0 回答 0