本站统计
  • 建站日期:2022-01-17
  • 文章总数:16294 篇
  • 用户总数:13167个
  • 分类总数:165 个
  • 最后更新:2025-5-18
  • 今日更新:0篇

javascript文件对象 javascript File object 英文pdf_前端开发教程

作者头像
首页 前端教程 正文
广告

资源名称:Javascript文件对象 Javascript File Object 英文pdf

 

To create a File or Folder object, use the corresponding File() and Folder() functions. You can also create them with the new operator if you like; both ways of calling File() or Folder() return a new object. The constructor accepts full or partial path 

names. In any case, the path stored internally is an absolute, full path name, so a File or Folder object, once created, always points to a fixed location of the disk. If you do not supply a file or folder name, a temporary name is generated. 

The Folder object supports file system functionality like walking directories, creating, renaming or removing files, or resolving file aliases. The File supports I/O functions to read or write files. Programmers implementing the object can choose to limit the functionality of the object by setting a combination of security flags. 

File and Folder objects can be used at any place where a path name is required; its conversion to a string (the toString() method) returns the name as supplied to the constructor. If you need the operating system specific file name, use the fsName property. 

When you create two File objects that refer to the same disk file, they are treated as distinct objects. If you open one of the File objects for I/O, the operating system may inhibit access to the opened File object from the other File object. 

There are several methods to distinguish between a File and a Folder

 

资源截图:

image.png

会员资源

开通赞助会员 · 全站免费下载

  • 版权说明
  • 文章采用: 《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权。
    本站资源来自互联网收集,仅供用于学习和交流,请勿用于商业用途。如有侵权、不妥之处,请联系客服以便删除!
  • 阿影博客网站永久地址为:https://www.aybk.cn/
  • 本站资源大多存储在云盘,如发现链接失效,请留言评论我们会第一时间更新。
  • 关于本站的所有留言评论与转载、引用文纯属文字原作者个人观点,与本站观点及立场无关!
  • 本站为非经营性个人站点,会员功能仅作为用户喜欢本站自愿捐赠、打赏,仅为维持服务器
  • Backbonejs入门教程 (第二版) 中文PDF_前端开发教程
    « 上一篇 05-01
    jQuery EasyUI 1.5.5 离线官方API中文文档 pdf_前端开发教程
    下一篇 » 05-01

    发表评论

    • 泡泡
    • 阿呆
    • 阿鲁
    • 蛆音娘
      没有更多评论了