anywhere

导航

2012年10月31日 #

javascript 笔记

摘要: 1、判断本地文件是否存在 o.FileExists(文件路径),返回布尔类型。 var filePath = 'C:\\ test.txt'; var fso = new ActiveXObject("Scripting.FileSystemObject"); if(!fso.FileExists(filePath)){ alert('文件不存在'); }2、获取本地文件创建时间和最后修改时间 file.DateCreated,file.DateLastModified。 var filePath = 'C:\\ test.txt&# 阅读全文

posted @ 2012-10-31 16:11 anywhere 阅读(257) 评论(0) 推荐(0) 编辑