前端接收文件流

參考博客  https://www.cnblogs.com/cdemo/p/5225848.htmlhtml 具體實現思路:ajax jQuery的ajax返回數據格式裏面沒有blob,因此接收到的數據會不能解析,因此能夠本身手動實現一個ajax,設置返回編碼 xhr.responseType = "blob"; 數據類型爲blob,這樣就能轉換成base64編碼顯示spa 轉換方式:htm ht
相關文章
相關標籤/搜索