作者:夏乐迎1 | 来源:互联网 | 2023-05-19 13:14
iverecentlytriedtogetsomeResponsefromanURLusingjQuery.ThereforeIcopiedagetrequest
i've recently tried to get some Response from an URL using jQuery. Therefore I copied a get request sample of jQuery API Get Request Tutorial into my project and tried to run it, but my debugging messages showed me, that it can't go further. I tried the Javascript Ajax Library using a simple request, but it didn't work.
我最近尝试使用jQuery从URL获得一些响应。因此,我将jQuery API get请求教程的get请求示例复制到我的项目中并尝试运行它,但我的调试消息显示,它不能再继续下去了。我使用一个简单的请求尝试了Javascript Ajax库,但它不起作用。
So i'm asking you, if you could help me somehow.
所以我想问你,你能不能帮帮我。
And this is all what i do, but there is no response.
这就是我所做的,但没有回应。
var url = "http://www.google.com";
$.get(url, function(data){
alert("Data Loaded: " + data);
});
Did i probably forgot to include a ajax or jQuery library. For a better understanding, i have c and obj-c experince, this is why i think, that a library is missing.
我可能忘记了使用ajax或jQuery库。为了更好地理解,我有c和object -c的经验,这就是为什么我认为一个库已经丢失。
In each sample there is just a short url like "test.php". Is my complete HTTP url wrong?
在每个示例中,只有一个简短的url,如“test.php”。我的完整HTTP url是否错误?
Thanks for your answers in advanced.
谢谢你提前回答。
Br Nic
Br网卡
4 个解决方案