[英]I want to access downloaded file(csv file in my case) in google chrome extension and get content of that
我想在chrome擴展程序中使用google chrome,我先下載一個csv
文件,然后獲取該csv
文件的內容,然后將該csv
文件內容移至Google電子表格,但我正在搜索chrome擴展程序是否有可能下載文件?
我自己找到了解決方案,這是
var xhr = new XMLHttpRequest();
xhr.open("GET", "your_url_from_where _you_download", false);
xhr.send();
var result = xhr.responseText;
console.log(result)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.