Uncaught SyntaxError: missing ) after argument list error
var ourRequest = new XMLHttpRequest();
ourRequest.open('GET' 'http://webwizardservices.com/first-1.json');
ourRequest.onload = function(){
console.log(ourRequest.responseText);
};
ourRequest.send();
Parameters in function calls like .open()
must be separated by commas. Your function call lacks a comma.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.