都不:

var response = $.ajax({
    type: "GET",
    url: "http://www.google.de",
    async: false,
    success : function() {
        alert (this);
    }
});

也不:
var response2 = $.get("http://www.google.de", function(data) {
    alert("Data Loaded: " + data);
});

给我一个对象。我如何获得responseText

最佳答案

您只需要像这样重写它:

var response = '';
$.ajax({ type: "GET",
         url: "http://www.google.de",
         async: false,
         success : function(text)
         {
             response = text;
         }
});

alert(response);

07-24 09:44
查看更多