일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- typeScript
- JavaScript
- solidity
- web
- error
- node.js
- express.js
- evm
- hardhat
- 기준
- graphQL
- concept
- API
- middleware
- Redux
- REACT
- Props
- built in object
- Interface
- blockchain
- HTML
- SSR
- CSS
- CLASS
- tailwindcss
- nextJS
- useState
- Ethereum
- bitcoin
- 삶
- Today
- Total
목록EVENT (4)
ReasonJun
An event in Solidity is a way to log and notify external entities (such as user interfaces or other smart contracts) about specific occurrences within a smart contract. Events are similar to logs or records that capture important information, allowing external observers to react to them and obtain relevant data. Events are defined using the event keyword, followed by the name of the event and th..
Events and emit are two important concepts in Solidity. Events are a way to log and notify external entities (such as user interfaces or other smart contracts) about specific occurrences within a smart contract. Emit is the keyword used to trigger or emit events within the smart contract code. Events are similar to logs or records that capture important information, allowing external observers t..
event obj // The event object contains event information that has occurred in the target. const parentEl = document.querySelector('.parent'); parentEl.addEventListener('click', (event) => { console.log(event.target, event.currentTarget); // The target of the (selected) event, the target where the event is registered console.log(event); // You can get information about an event that has occurred...
add / remove //? .addEventListener() // Registers to listen for events on the target. // When an event specified in the target occurs, the specified function is called. const parentEl = document.querySelector('.parent'); const childEl = document.querySelector('.child'); parentEl.addEventListener('cilck', () => { console.log('Parent'); }); childEl.addEventListener('cilck', () => { console.log('Ch..