golang gin框架传输excel 流文件,前端vue接受并且下载
gin端"github.com/360EntSecGroup-Skylar/excelize/v2"c.Header("response-type", "blob")data, _ := file.WriteToBuffer()c.Data(http.StatusOK, "application/vnd.ms-excel", data.Bytes())vue端 axios.get("xxxx", {responseType: "blob"}).then(res =>..
原创
2021-01-06 10:21:36 ·
3222 阅读 ·
1 评论