current position:Home>According to teacher Xiong's video, on Web3 How to put JS into atom

According to teacher Xiong's video, on Web3 How to put JS into atom

2022-02-03 20:58:01 Q & A of Denglian community

Looking at x Full stack development of blockchain written by Mr. Xiong -DAPP The fifth section of development practice DAPP Realize it web3, Where are you going web3.js Copy a link to atom among , But I found that this link is different from that in teacher Xiong's video , When I enter the link on the current website , Nothing will be displayed with developer tools , When I input the link copied in the video, it shows web3 is not defined, Just want to ask what to do to continue the first interface .6KULCD8O3VX8CQWR9.png

The error code is as follows <html lang="en"><head><meta charset="UTF-8"><title>Document</title>

&lt;link rel="stylesheet" type="text/css" href="main.css">&lt;script src="[email protected]/dist/web3.min.js">&lt;/script>

</head><body><div class="container">

    &lt;h1>Info Contract&lt;/h1>    &lt;h2 id="info">&lt;/h2>    &lt;label for="name" class="col-lg-2 control-label">Name&lt;/label>    &lt;input id="name" type="text">    &lt;label for="name" class="col-lg-2 control-label">Age&lt;/label>    &lt;input id="age" type="text">    &lt;button id="button">Update Info&lt;/button>&lt;/div>&lt;script>console.log("web3:" + web3);&lt;/script>


Mainly to see script Where? , I copied everything else , No problem , Please , More anxious

Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.

Random recommended