如何在控制台页面中查看URI的内容?

时间:2016-12-10 15:18:46

标签: javascript json

query = query.Where("Name.Substring(0, 1) >= \"0\" and Name.Substring(0, 1) <= \"9\"");

我一直在我的控制台中收到此消息。

var ourRequeest = new XMLHttpRequest(); ourRequeest.open('GET' 'https://learnwebcode.github.io/json-example/animals-1.json') ourRequeest.onload = function() { console.log(ourRequest.responseText); }; ourRequest.send();

问题:有什么不对吗?

1 个答案:

答案 0 :(得分:2)

你有一些问题。

,中遗失.open();,而您的变量在e ourRequeest的{​​{1}}也缺少;

.open();

如果您有任何问题可以随时提出,我会尽快回复您。

我希望这会有所帮助。快乐的编码!