使用AJAX从服务器请求文件,运行报错 Document // const myobj={name:"Bill",age:21,city:"Guangzhou"}; // const myJSON=JSON.stringify(myobj); // window.location="/demo_json.php?x="+myJSON; // 来自服务器的 JSON 可以使用 AJAX 请求从服务器请求 JSON const xhttp=new XMLHttpRequest(); xhttp.onreadystatechange=function(){ if(this.readyState==4&&this.status==200){ const myobj=JSON.parse(this.responseText); document.getElementById("d1").innerHTML=myobj.name } } xhttp.open("GET","json.txt"); xhttp.send(); 第一次运行时忘记把上面三条代码注释掉,就直接运行,结果浏览器报错  第二次注释了上面的代码,保存之后,重启了node.js本地服务器,再运行几遍,依旧显示之前的错误。为什么会一直运行已经注释了的代码请求? 还有修改了服务器的json文本,运行AJAX请求,responseText获得的结果依旧是原来未修改的文本,这是为什么