FEDev Story

javascript get child index 본문

Javascript

javascript get child index

지구별72 2021. 9. 3. 18:08
Array.from(element.parentNode.children).indexOf(element)
[...element.parentNode.children].indexOf(element);
Comments