工具文件.js:
import saveAs from 'file-saver';
// base64 转 Blob
function dataURLtoBlob(b64Data, contentType) {
// const bstr =window.atob(b64Data);? 加个window.
const bstr = atob(b64Data);
let n = bstr.length;
const u8arr = new Uint8Array(n);
while (n--) {
u8arr[n
react antd Class 组件 点击按钮下载excle文件
于 2022-03-22 17:52:06 首次发布