摘要:
doPrint (printHtml) { // 判断iframe是否存在,不存在则创建iframe let iframe = document.getElementById('print-iframe') if (!iframe) { iframe = document.createElement 阅读全文
摘要:
这个要注意格式,要加上responseType: 'arraybuffer' import axios from 'axios' const fileTypeList = ['application/pdf', 'image/png', 'image/gif', 'image/jpeg', 'txt 阅读全文