新文件的JS“File”和“new File”构造函数有什么区别?
即,之间有什么区别:
var f = File("C:/myfile.txt");
和
var f = new File("C:/myfile.txt");
提前致谢!
答案 0 :(得分:0)
ECMAScript-262中没有File
个对象。
也许你的意思是ExtendedScript(Adobe CS)的File
对象?
File ([path]); //can return a Folder object
new File ([path]); //always returns a File object