原来浏览器原生支持JS Base64编码解码 outside of the Latin1 range

原来浏览器原生支持JS Base64编码解码 « 张鑫旭-鑫空间-鑫生活 https://www.zhangxinxu.com/wordpress/2018/08/js-base64-atob-btoa-encode-decode/

VM197:2 Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.(…)(anonymous function) @ VM197:2InjectedScript._evaluateOn @ VM155:878InjectedScript._evaluateAndWrap @ VM155:811InjectedScript.evaluate @ VM155:667
window.btoa("fd345ertgertre,@,1.25,@tsghsdgfskfj3344534tuifjdsgfnd")
"ZmQzNDVlcnRnZXJ0cmUsQCwxLjI1LEB0c2doc2RnZnNrZmozMzQ0NTM0dHVpZmpkc2dmbmQ="

上一篇:Java内部类


下一篇:25G接力10G技术成为数据中心最优解决方案