摘要: 1、npm install crypto-js然后在项目中引入sha2562、import sha256 from 'crypto-js/sha256';然后将想要转换的字符 加密3、const hashDigest = sha256("我和我的祖国").toString();console.log 阅读全文
posted @ 2020-10-16 16:08 AloneInDefeat 阅读(1336) 评论(0) 推荐(0) 编辑
摘要: // 下载方法downloadString=(name, data) =>{ var urlObject = window.URL || window.webkitURL || window; var export_blob = new Blob([data]); var save_link = d 阅读全文
posted @ 2020-10-16 15:54 AloneInDefeat 阅读(418) 评论(0) 推荐(0) 编辑
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, 阅读全文
posted @ 2020-10-16 15:22 AloneInDefeat 阅读(812) 评论(0) 推荐(0) 编辑