I am developing an extension for the chrome browser. I use the KangoExtensions framework. The extension is written in JavaScript. I want to read the content of a file, which is located on the local filesystem. What is the easiest way to implement this?
如果您已经知道文件系统中文件的路径,则只需在清单文件中添加对file://*
的权限,然后对url file://{filepath}
进行GET XMLHttpRequest即可。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.