![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 85
weixin_42737733
这个作者很懒,什么都没留下…
展开
-
关于这些年做的 图片上传下载做的处理总结(including根据图片url上传文件)
下载文档我们查柜的认知是后端给前端传一个链接地址,将地址放在a标签上,点击链接下载文件。可有时候往往不是这样的,后端给前端返回了一个文档流,这就需要我们自己转换为Blob格式的数据,再使用这个数据转化成一个url地址,模拟一个a标签,将地址放进去。 //创建一个blob是excel格式的 let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }); let cont原创 2021-11-13 20:14:30 · 1402 阅读 · 0 评论 -
For recursive components, make sure to provide the "name" option. (found in <Root>)
全部的错误是 Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.(found in )原因分析:1、没有注册组件,即did you register the component...原创 2020-02-23 18:48:50 · 25777 阅读 · 1 评论