javascript
上进的鸭
菜还不爱学习
展开
-
使用Axios下载后端文件
步骤主要分成两步 背景:我们在开发中将选中的文件id为识别码,在后端获取对应文件 1.创建辅助用的a标签,并且设置a标签不显示 <a id='download_help' style='display:none'> 2.typescript实现 private download(idList:any){ axios( method:'post', url:'...', responseType:'blob', headers:{'ContentType' : 'applicati原创 2021-05-31 17:40:33 · 282 阅读 · 0 评论 -
JavaScript对象函数几个问题,以后来填坑
<script> function a(){ alert("a() is executed"); } var person={ name:"heh", age:20, say:a } //alert(JSON.stringify(person));//居然无法把say变成json //person...原创 2020-09-17 16:30:02 · 75 阅读 · 2 评论