德code网址安全base64在JavaScript中(浏览器端) [英] Decode URL Safe Base64 in JavaScript (browser side)

查看:95
本文介绍了德code网址安全base64在JavaScript中(浏览器端)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Gmail的API从我的帐户中的电子邮件。消息的身体处于网址安全base64格式交付。什么是脱code本作使用的最佳方法?我已经找到了一些解决方案的NodeJS,但没有客户端的。 window.atob不工作,因为它是URL安全的。

I am using Gmail's API to get emails from my account. The body of the message is delivered in a "URL safe base64" format. What is the best way to decode this for use? I have found some nodejs solutions, but no client side ones. window.atob does not work since it is URL safe.

感谢您的帮助。

推荐答案

终于找到了。这确实URL安全解码

Finally found it. This does URL Safe decoding

https://github.com/dankogai/js-base64

这篇关于德code网址安全base64在JavaScript中(浏览器端)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆