This Domain(Admin5.com) is for Sale:

Files 集合

时间:2007-12-27  来源:不详  作者:林子

一个文件夹中所有 File 对象的集合。 copyright dedecms

说明

下面这个例子说明了如何获得一个 Files 集合以及如何使用 Enumerator 对象和 for 语句来遍历该集合:

本文来自织梦

function ShowFolderFileList(folderspec)

{

var fso, f, f1, fc, s;

fso = new ActiveXObject("Scripting.FileSystemObject");

f = fso.GetFolder(folderspec);

fc = new Enumerator(f.files);

s = "";

for (; !fc.atEnd(); fc.moveNext())

{

s  = fc.item();

s  = "<br>";

}

return(s);

} 

dedecms.com

方法

Files 集合没有方法。

织梦内容管理系统

属性

Count 属性 | Item 属性 dedecms.com

请参阅

Drive 对象 | Drives 集合 | File 对象 | Folder 对象 | Folders 集合

本文来自织梦

看完这篇,您有何感觉呢?

上一篇:File 对象   下一篇:Drives 集合

文章评论

共有位Admini5网友发表了评论 查看完整内容

24小时热门信息