关于Linux上的Javascript中的文件处理 您所在的位置:网站首页 linux几种常见的文件内容查找和替换 关于Linux上的Javascript中的文件处理

关于Linux上的Javascript中的文件处理

2023-03-08 15:31| 来源: 网络整理| 查看: 265

3  

The Mozilla Development Center has some really great reusable XPCOM components for managing files. Check out the nsIFile component documentation below:

Mozilla开发中心有一些非常好的可重用XPCOM组件来管理文件。查看下面的nsIFile组件文档:

Reading, writing files: https://developer.mozilla.org/en/Code_snippets/File_I//O#Navigating_with_.0ansIFile

阅读,编写文件:https://developer.mozilla.org/en/Code_snippets/File_I//O#Navigating_with_.0ansIFile

General information on nsIFile: https://developer.mozilla.org/en/Code_snippets/File_I//O#nsIFile_and_path_strings

有关nsIFile的一般信息:https://developer.mozilla.org/en/Code_snippets/File_I//O#nsIFile_and_path_strings

In short, when developing a Firefox Add-on, your Javascript has special permissions when loaded in the XUL markup using a "chrome URL". This Javascript can read and write to the filesystem natively, for Windows, Mac, and Linux. Thus, there is no need to use Flash or any third-party plug-ins.

简而言之,在开发Firefox附加组件时,如果使用“chrome URL”在XUL标记中加载Javascript,则Javascript具有特殊权限。对于Windows,Mac和Linux,此Javascript可以本地读取和写入文件系统。因此,无需使用Flash或任何第三方插件。



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有