반응형


jQuery 는 JavaScript의 라이브러리

- 이벤트 탐색, 이벤트 제어, HTML 문서탐색, 동적표현, AJAX제어 가능

- Document Object Model => DOM


- Basic jQuery usage

  jQuery(<code>);

- How jQuery Accesses The DOM

  jQuery(document);


- CSS selectors

<!DOCTYPE html>

<html>

<head>

<title>jQuery Adventures</title>

</head>

<body>

<h1>Where do you want to go?</h1>

<p>Plan your next adventure.</p>

</body>

</html>


h1 { font-zie: 3em; }

p { color: blue; }


jQuery("h1"); == ${"h1"};

jQuery("p"); == ${"p"};


1번문제

>$("h2")

2번문제

>$("span")

3번문제

>$("span").text()

4번문제

>$("span").text('$100')

5번문제

>$(document).ready(function(){});


반응형

'Java > jQuery' 카테고리의 다른 글

2.1 Searching the DOM  (0) 2014.02.19
1.2 Using jQuery  (0) 2014.02.19

+ Recent posts