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

  • 当前会员等级:暂无   当前价格:15.00   
  • 有下载权限:永久会员 月会员 季会员 年会员无下载权限:普通会员
  • 人气指数:1316人次    下载次数: 0
  • 最后更新:2020-11-07 16:29:38
立即下单
网盘提取码:隐藏内容请 登录 查看
暂无演示
详情

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

 

内容简介:

avascript文件对象 Javascript File Object 主要是介绍了javascript中文件的一些操作,学习js操作文件的朋友可以看下。

Javascript File and Folder classes
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

 

资源截图:

1.png

本文由六神源码网整理自网络,如有侵权请联系本站删除!
=============================================================
本站声明:
1、本站所有资源均来源于互联网,不保证100%完整、不提供任何技术支持;
2、本站所发布的文章以及附件仅限用于学习和研究目的;不得将用于商业或者非法用途;否则由此产生的法律后果,本站概不负责!
-六神源码网 出售域名-六神源码网 网站出售-六神源码网 微信公众号抽奖-六神源码网 vr全景制作-六神源码网 网站出售带数据-六神源码网 听歌-六神源码网