JavaScript 변수명에 $를 붙이는 이유

ISU·2023년 2월 7일

개발블로그

목록 보기
12/20

JavaScript 변수명에 $를 붙이는 이유

// 'var $email' refers to the jQuery object representation of the dom object
var $email = $("#email");

// 'var email_field' refers to the dom object itself
var email_field = $("#email").get(0); 

profile
열심히 공부하고 있는 기록

0개의 댓글