【问题标题】:javascript web3.js library errorjavascript web3.js 库错误
【发布时间】:2018-12-11 06:13:24
【问题描述】:

我正在尝试使 web3.js 库正常工作,但仍然出现错误。我无法处理的是

var require=(
   function(){
       function t(e,n,r){......}
           (                         // the line 21
           {........},{},["Web3"]    // Web3 in question
           )("Web3")
   }
);

第 21 行:TypeError:Web3 不是函数。 有什么建议吗?

【问题讨论】:

    标签: web3


    【解决方案1】:

    在js中添加web3

    <script src="./web3/dist/web3.min.js"></script>
    

    【讨论】:

      【解决方案2】:

      你需要导入 web3.请参阅此处的“安装”:https://github.com/ChainSafe/web3.js

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-09-22
        • 1970-01-01
        • 2021-09-19
        • 2022-10-05
        • 2020-09-17
        • 2023-02-01
        • 2022-11-16
        • 2018-05-04
        相关资源
        最近更新 更多