一个原生ajax在jetbrains开发平台的调用方法

这段随笔的记述目的无非是,一个html页面中可能有多段js代码,所以采用外引的方法应该会好一些

function checkfiles()
{
    var xhr = new XMLHttpRequest();
    var lookup = $("#exampleInputEmail1").val();
    //alert(lookup);
    xhr.onreadystatechange = function () {
        console.log(xhr.readyState);
    }
    xhr.open('get','.././views/filecontents.php?num='+lookup);
    xhr.send(null);
}

 

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2021-06-21
  • 2022-01-11
  • 2021-05-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
猜你喜欢
  • 2021-05-12
  • 2022-01-29
  • 2021-12-06
  • 2021-07-28
  • 2021-11-20
  • 2021-10-16
  • 2022-12-23
相关资源
相似解决方案