document.addEventListener("paste", function (event) {
var isChrome = false;
if (event.clipboardData || event.originalEvent) {
//某些chrome版本使用的是event.originalEvent
var clipboardData =
event.clipboardData || event.originalEvent.clipboard...
responseType:"blob", 请求接口的时候加上
let blob = new Blob([res], {
type: "application/vnd.ms-excel",
});
let url = window.URL.createObjectURL(blob);
let link = document.createElement("a");
link.download = 'zz.xlsx'
link....