摘要: function encode(str:any){ // 对字符串进行编码 var encode = encodeURI(str); // 对编码的字符串转化base64 var base64 = btoa(encode); return base64; } 阅读全文
posted @ 2022-09-27 16:14 人心不古 阅读(36) 评论(0) 推荐(0) 编辑