我想知道..我怎么得到XHR finished loading
字符串?
基本上,我在Google Instant的页面上,我想以字符串形式返回搜索结果的“真实” URL。
最佳答案
如果使用jQuery,则可以进行Ajax调用,并在succes事件中获取页面的结果
$.ajax({
url: 'ajax/test.html',
success: function(data) {
$('.result').html(data);
alert('Load was performed.');
}
});