ar xhr = new XMLHttpRequest();

        xhr.onreadystatechange = function(){


            if( xhr.readyState == 4){


                if( xhr.status >= 200 && xhr.status < 300 || xhr.status == 304){

 
                    info.innerHTML = xhr.responseText;

                }

            }

        };

        xhr.open("get","test.txt",true);

        xhr.send(null);

 

相关文章:

  • 2021-11-27
  • 2021-11-27
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2022-02-24
猜你喜欢
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
相关资源
相似解决方案