jQuery

2023. 1. 27. 13:39

jQuery는 가장 유명한 javascript 라이브러리이다.

이 라이브러리를 사용하면 생산성을 쉽게 높일 수 있다.

 

https://jquery.com/download/

 

Download jQuery | jQuery

link Downloading jQuery Compressed and uncompressed copies of jQuery files are available. The uncompressed file is best used during development or debugging; the compressed file saves bandwidth and improves performance in production. You can also download

jquery.com

위 사이트에서 Using jQuery with a CDN 부분을 보면 CDN 방식으로 jQuery를 사용할 수 있는 방법을 설명해준다.

 

jQuery를 사용해서 코드를 더 간단하게 만들 수 있다.

$('a').css('color', 'powderblue');

위 코드는 아래 코드와 같은 동작을 한다.

 

var alist = document.querySelectorAll('a');
    var i = 0;
    while (i < alist.length) {
        alist[i].style.color = color;
        i++;
    }

 

jQuery의 문법은 아래 링크를 참조

https://www.w3schools.com/jquery/jquery_syntax.asp

 

jQuery Syntax

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

www.w3schools.com

 

jquery는 편리하지만 속도가 아주 느리다는 단점이 있다.


부스트코스의 강의 내용을 정리한 포스트입니다.

https://www.boostcourse.org/cs124

 

자바스크립트의 시작

부스트코스 무료 강의

www.boostcourse.org

'공부 > JavaScript' 카테고리의 다른 글

객체 프로퍼티 접근 방법  (0) 2023.01.31
객체 속성 삭제(delete 연산자)  (0) 2023.01.30
자바스크립트 파일 생성 후 연결  (0) 2023.01.27
객체  (0) 2023.01.26
함수  (0) 2023.01.26

BELATED ARTICLES

more