function IsExistsFile(filepath)
        {
            var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
            xmlhttp.open("GET",filepath,false);
            xmlhttp.send();
            if(xmlhttp.readyState==4){  
                if(xmlhttp.status==200) return true; //url存在  
                else if(xmlhttp.status==404) return false; //url不存在  
                else return false;//其他状态  
            }
        }

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-11-18
  • 2022-02-26
猜你喜欢
  • 2022-01-12
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案