Comments (9)
补充一下使用react 框架
from sm-crypto.
有报错么?
from sm-crypto.
@JuneAndGreen
这个是webpack dev时候的报错
这个是webpack 打包出来的报错
Unexpected token '{'. Expected an identifier name in const declaration.
然后这一段代码的上一个 { 报错
var r = Object.getOwnPropertySymbols,
i = Object.prototype.hasOwnProperty,
o = Object.prototype.propertyIsEnumerable;
t.exports = function() {
try {
if (!Object.assign)
return !1;
var t = new String("abc");
if (t[5] = "de", "5" === Object.getOwnPropertyNames(t)[0])
return !1;
for (var e = {}, n = 0; n < 10; n++)
e["_" + String.fromCharCode(n)] = n;
if ("0123456789" !== Object.getOwnPropertyNames(e).map(function(t) {
return e[t]
}).join(""))
return !1;
var r = {};
return "abcdefghijklmnopqrst".split("").forEach(function(t) {
r[t] = t
}), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, r)).join("")
} catch (t) {
return !1
}
}(
from sm-crypto.
看起来是 const { BigInteger } = xxxx
这个解构赋值的语法在 ios 10不支持的样子,尝试调整一下 babel 的配置?
from sm-crypto.
@JuneAndGreen 但是android5.1以下的也打不开,然后环境已经是es5了哦 T_T
from sm-crypto.
解构赋值是 es6 的规范。
from sm-crypto.
@JuneAndGreen
但好像使用babel-polyfill 环境已经是包含 es5 es6的哦,不是么?
from sm-crypto.
这个你得看 babel 的使用介绍,想要在低端环境上用,至少要转成 es5 的语法才行。es6 的语法在低端环境不一定支持。
from sm-crypto.
@JuneAndGreen
好的,谢谢,我研究一下babel
from sm-crypto.
Related Issues (20)
- 提供一个高性能的Java版,采用了BC库
- 一些其他的版本实现,方便取用 HOT 3
- sm4.encrypt的key要求是128比特,可是demo那里的字符是32位。 HOT 5
- sm4.encrypt的key要求是128比特,可是demo那里的字符是32位。
- uniapp 提示未定义 HOT 4
- sm4密钥 HOT 7
- hi, 这个工具又从证书获取公钥或私钥的方法吗? HOT 7
- 什么时候支持ts呀? HOT 1
- js加密,服务端(java hutool)解密,概率性出现解密失败 HOT 4
- sm2签名 支持r 和 s输出吗 HOT 1
- 能否实现类似spark-md5的功能? HOT 1
- SM3和SM4有原生js的引入的方式吗 HOT 1
- sm3-hmac算出来和openssl算的结果不一样 HOT 2
- 生成的密钥对结构和java的不一样 HOT 2
- sm4加密文件后无法解密 HOT 7
- sm4 加密报错
- 在使用代码混淆后,无法加解密 HOT 1
- vue项目,计算视频文件SM3,大一点的就崩溃 HOT 5
- SM2解密 后台采用hutool,密文加了04,但是还是偶发解密不了,报错InvalidCipherTextException: invalid cipher text HOT 1
- IE 出现兼容问题,建议修改 packjson 的main的路径 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sm-crypto.