티스토리 뷰

728x90
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery-3.6.0.min.js"></script>
</head>

<body>
    <!-- $() : querySelectorAll 처럼 해당하는 모든 선택자들이 선택되며, 배열로 저장됨 -->
    <h1 id="tit">Title</h1>
    <p>Content1</p>
    <p>Content2</p>
    <p>Content3</p>
    
    <script>
        const h1 = $("h1");
        console.dir(h1);

        const p = $("p");
        console.dir(p);

    </script>
</body>

</html>

728x90
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/07   »
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
글 보관함