current position:Home>Course blockchain full stack development - Web3 cannot be imported in the actual practice of Ethereum DAPP development

Course blockchain full stack development - Web3 cannot be imported in the actual practice of Ethereum DAPP development

2022-02-03 23:23:23 Q & A of Denglian community

Code :

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!DOCTYPE html><html><head>    <title>First DApp Demo</title>    <link rel="stylesheet" type="text/css" href="main.css">    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js"></script> <!--  introduce web3 --></head><body>    <div class="container">        <h1>First DApp Demo</h1>        <h2 id="info"> </h2>        <label> full name :</label>        <input id="name" type="text" name="">        <label> Age :</label>        <input id="age" type="text" name="">        <button id="button"> Update the content </button>    </div>    <script>        console.log("web3:" + web3);    </script> </body></html>

Report errors :Uncaught ReferenceError: web3 is not defined at index.html:23






Other answers 1:


Other answers 2:


Other answers 3:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032323211419.html

Random recommended