[英]Exporting table data from HTML page to CSV file using the Browser Console (Chrome)
[英]Standalone html page with jquery to open .csv file in chrome browser
我正在尝试在Chrome浏览器中打开独立的html页面。
该html页面包含jquery-1.4.2.min.js和jquery.csvToTable.js,用于打开csv文件并在浏览器页面中显示表。
当我尝试在Chrome浏览器中打开时,出现以下错误,
jquery-1.4.2.min.js:130无法加载文件:/// C:/test/sample.csv: 仅协议方案支持跨源请求:http,数据,chrome,chrome扩展名,https。
除了上述之外,在Edge浏览器中也可以正常打开。
当我通过传递--allow-file-access-from-files启动chrome浏览器时,能够加载页面
像这样-chrome --allow-file-access-from-files file:/// C:/test/index.html
但是,还有其他方法可以在Chrome浏览器中打开本地文件吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.