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)
有人可以对此有所了解吗?
| 归档时间: |
|
| 查看次数: |
12123 次 |
| 最近记录: |