dankogai / js-base64

Base64 implementation for JavaScript
BSD 3-Clause "New" or "Revised" License
4.27k stars 1.33k forks source link

高级语法在ie或者低版本浏览器不支持 #142

Closed wqq20170106 closed 3 years ago

wqq20170106 commented 3 years ago

const b64chs = [...b64ch];

wqq20170106 commented 3 years ago

@dankogai I‘m so sorry to trouble you, could you help me to resolve this issue if it is convenient for you. waiting...

So-For commented 3 years ago

应该需要自己来做兼容

lizm-21 commented 3 years ago

@wqq20170106 解决了么

dankogai commented 3 years ago

https://github.com/dankogai/js-base64#heads-up

In version 3.0 js-base64 switch to ES2015 module so it is no longer compatible with legacy browsers like IE (see below).

https://github.com/dankogai/js-base64#if-you-really-really-need-an-es5-version

You can transpiles to an ES5 that runs on IE11. Do the following in your shell.

$ make base64.es5.js