为什么我得到:未捕获的SyntaxError:此处出现意外的令牌ILLEGAL

Osc*_*Ryz 4 javascript xmlhttprequest

我有这个简单的脚本:

    ids="22656"
    url = "http://api.stackoverflow.com/1.0/users/"+ids+"/timeline";
    console.log( url );
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open(“GET”, url ,true);
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4) {
            console.log( xmlhttp.responseText );
        }
        xmlhttp.send( null );
    };    
Run Code Online (Sandbox Code Playgroud)

但我不太明白为什么我得到:

Uncaught SyntaxError: Unexpected token ILLEGAL
Run Code Online (Sandbox Code Playgroud)

有人可以对此有所了解吗?

jor*_*aul 10

GET周围的报价不合适.您必须对字符串使用标准的单引号或双引号.