Pages

2014년 4월 29일 화요일

[JAVASCRIPT] jQuery 감싼 객체를 캐시하는 것이 좋다


Code #1
$("div#test").width(100);
$("div#test").height(100);
$("div#test").css("opacity", 0.5);


Code #2
var wel = $("div#test");
wel.width(100);
wel.height(100);
wel.css("opacity", 0.5);



댓글 없음:

댓글 쓰기