JavaScript判断文件是否存在

复制代码
JavaScript判断文件是否存在
function ReportFileStatus(filespec)
{
var fso, s = filespec;
fso
= new ActiveXObject("Scripting.FileSystemObject");
if (fso.FileExists(filespec))
s
+= " exists.";
else
s
+= " doesn't exist.";
return(s);
}
复制代码

 

posted on   码魂  阅读(592)  评论(2编辑  收藏  举报

努力加载评论中...

导航

点击右上角即可分享
微信分享提示