且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jquery ajax从http url获取响应文本

更新时间:2022-03-10 05:03:18

你必须像这样重写它:

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

alert(response);