使用Crypto-JS进行加解密后,提示报错Uncaught Error: Malformed UTF-8 data
Crypto-JS
Uncaught Error: Malformed UTF-8 data
我说下我这边的情况,是因为传过来的数据中有换行,去除后就好了~
JSON.stringify(content.data.replace(/[ ]/g, ''))