简体   繁体   English

Safari中的atob()异常,但可在Chrome中使用

[英]atob() exception in Safari, but works in Chrome

Any idea why the same base64 string passed to atob() would work in Chrome but not Safari? 知道为什么将相同的base64字符串传递给atob()可以在Chrome中工作,但不能在Safari中工作吗?

From the console, I called atob(data) for the same base64 data string 从控制台,我为相同的base64数据字符串调用了atob(data)

atob(data)在Safari中引发异常

On my case, Chrome's atob() allows encoded string to including '\\n', Firefox does and Safari does not. 就我而言,Chrome的atob()允许编码的字符串包含'\\ n',Firefox包含,而Safari则不包含。

https://github.com/buunguyen/octotree/pull/149 https://github.com/buunguyen/octotree/pull/149

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM