개발이야기
[jQuery] $+변수의 의미 본문
var $element = $(this);
이렇게 선언하면, $(this).addClass('test'); 대신 $element.addClass('test');로 대체 가능하다.
'Javascript' 카테고리의 다른 글
외부 js/css 파일 불러올때 주의점 (0) | 2020.02.27 |
---|---|
자바스크립트 클로저 활용 예 (0) | 2020.02.25 |
[jQuery] jQuery 개체를 DOM 개체로 변환하기 (0) | 2020.02.23 |
[jQuery] html()과 text() 함수의 차이 (0) | 2020.02.23 |
[jquery] ready() 함수에 대해 (0) | 2020.02.22 |
Comments