会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
archerhao
博客园
首页
新随笔
联系
订阅
管理
2019年8月28日
js字符串转base64
摘要: //字符串转base64 function encode(str){ // 对字符串进行编码 var encode = encodeURI(str); // 对编码的字符串转化base64 var base64 = btoa(encode); return base64; } // base64转字
阅读全文
posted @ 2019-08-28 13:41 archerhao
阅读(42709)
评论(0)
推荐(1)
2018年12月20日
json-server的一些使用
摘要: 在使用jsonserver模拟接口的时候。 假如写这样的数据: // db.json{ "posts": [ { "id": 1, "name": "json" } ], "comments": [ { "id": 2, "name": "server" } ]}访问的接口是: http://loc
阅读全文
posted @ 2018-12-20 21:40 archerhao
阅读(242)
评论(0)
推荐(0)
公告