javascript中的语法错误:缺失)

时间:2017-01-31 23:34:57

标签: javascript

未捕获的SyntaxError:缺少)参数列表错误

之后
   var ourRequest = new XMLHttpRequest();
    ourRequest.open('GET' 'http://webwizardservices.com/first-1.json');
    ourRequest.onload = function(){
        console.log(ourRequest.responseText);
    };
    ourRequest.send();

1 个答案:

答案 0 :(得分:4)

.open()等函数调用中的参数必须用逗号分隔。你的函数调用缺少逗号。