本文介绍了从chrome打开本地文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在文件系统/网络驱动器上打开本地文件( c:\abc.xlsx
或 p:\ abc .xlsx
)?
Is it possible to open a local file on the filesystem/network drive (c:\abc.xlsx
or p:\abc.xlsx
)?
如果是这样,是否可以通过我为Google Chrome创建的自定义扩展程序执行此操作?
If so, is it possible to do it through a custom extension that I create for Google Chrome?
推荐答案
可以通过设置 - 允许文件访问文件
flag。
It can be done by setting the --allow-file-access-from-files
flag.
不要正常打开Chrome,请运行:
Instead of opening Chrome normally, run:
path\to\your\chrome\installation\chrome.exe --allow-file-access-from-files
这篇关于从chrome打开本地文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!