const activatedTab = document.getAttribute("href");
const contentTab = document.querySelector(activatedTab);
const activatedTab = document.getAttribute("href");
const contentTab = document.querySelector(activatedTab);
'UI > Javascript' 카테고리의 다른 글
[Javascript] 배열 안에서 렌덤으로 뽑기 (0) | 2023.12.30 |
---|---|
[HTML 속성값 가져오기, form] event.target[name-input].value (0) | 2023.12.30 |
[setAttribute] <-> removeAttribute (0) | 2023.12.29 |
[immutability] const vs freeze( ) (0) | 2023.12.25 |
[immutability]불변값 (0) | 2023.12.25 |