Neither:
var response = $.ajax({
type: "GET",
url: "http://www.google.de",
async: false,
success : function() {
alert (this);
}
});
Nor:
var response2 = $.get("http://www.google.de", function(data) {
alert("Data Loaded: " + data);
});
give me an object. How do I get access to the responseText
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…