- 博客(3)
- 收藏
- 关注
原创 react+js下载图片url们到zip
import JSZip from 'jszip';import FileSaver from 'file-saver';import JSZipUtils from 'jszip-utils'downLoadPics = async (record) => { let pics = record.pics let len = pics.length if (len <= 0) { message.info("该报.
2021-03-15 10:23:19
378
原创 react+js根据图片的url下载图片到本地
思路用canvas画布把图像画出来然后用filesaver save//导入filesaverimport FileSaver from 'file-saver';//download方法downLoad=()=>{ var img=document.getElementById("qrCode"); // console.log(img) var canvas=document.getElementById("canvas");
2021-03-15 10:12:21
2437
原创 python的数学绘图
#coding=gbkimport mathimport matplotlib.pyplot as pltimport numpy as npif __name__=="__main__": x = np.arange(0.05, 3, 0.05) y1 = [math.log(a, 1.5) for a in x] plt.plot(x, y1, linew...
2018-02-20 14:21:20
1529
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人