未捕获的SyntaxError:缺少)参数列表错误
之后 var ourRequest = new XMLHttpRequest();
ourRequest.open('GET' 'http://webwizardservices.com/first-1.json');
ourRequest.onload = function(){
console.log(ourRequest.responseText);
};
ourRequest.send();
答案 0 :(得分:4)
.open()
等函数调用中的参数必须用逗号分隔。你的函数调用缺少逗号。