![](/img/trans.png)
[英]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.