Giter VIP home page Giter VIP logo

Comments (9)

cam510 avatar cam510 commented on August 16, 2024

补充一下使用react 框架

from sm-crypto.

JuneAndGreen avatar JuneAndGreen commented on August 16, 2024

有报错么?

from sm-crypto.

cam510 avatar cam510 commented on August 16, 2024

@JuneAndGreen
这个是webpack dev时候的报错
_20181203092455
这个是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.

JuneAndGreen avatar JuneAndGreen commented on August 16, 2024

看起来是 const { BigInteger } = xxxx 这个解构赋值的语法在 ios 10不支持的样子,尝试调整一下 babel 的配置?

from sm-crypto.

cam510 avatar cam510 commented on August 16, 2024

@JuneAndGreen 但是android5.1以下的也打不开,然后环境已经是es5了哦 T_T

from sm-crypto.

JuneAndGreen avatar JuneAndGreen commented on August 16, 2024

解构赋值是 es6 的规范。

from sm-crypto.

cam510 avatar cam510 commented on August 16, 2024

@JuneAndGreen
但好像使用babel-polyfill 环境已经是包含 es5 es6的哦,不是么?

from sm-crypto.

JuneAndGreen avatar JuneAndGreen commented on August 16, 2024

这个你得看 babel 的使用介绍,想要在低端环境上用,至少要转成 es5 的语法才行。es6 的语法在低端环境不一定支持。

from sm-crypto.

cam510 avatar cam510 commented on August 16, 2024

@JuneAndGreen
好的,谢谢,我研究一下babel

from sm-crypto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.