jQuery 1.4 Released
script 2010/01/16 22:25자세한 내용은 jQuery 1.4 Released 페이지를 참조하고
대충 살펴보니 속도 개선을 한점과
setter함수(css(), val(), html() 등)에 function을 사용할 수 있는것
// find all ampersands in A's and wrap with a span
$('a').html(function(i,html){
return html.replace(/&/gi,'&');
});
// Add some information to the title of the anchors
$('a[target]').attr("title", function(i,title){
return title + " (Opens in External Window)";
});
core부분에서 element생성과 동시에 속성및 이벤트를 지정할 수 있는것jQuery("
", {
id: "foo",
css: {
height: "50px",
width: "50px",
color: "blue",
backgroundColor: "#ccc"
},
click: function() {
$(this).css("backgroundColor", "red");
}
}).appendTo("body");
이 외에도 추가되는 함수들이 더 있는데jQuery 1.4 Released페이지와 API사이트를 참조하여 살펴봐야 할 듯
jQuery team이 무섭다 ㄷㄷ
점점 간단하게 개발할 수 있는데 속도까지 빨라지도 있다니 ㄷㄷ
'script' 카테고리의 다른 글
| javascript 세자리마다 콤마(,) 찍기 (0) | 2010/02/18 |
|---|---|
| javascript 상하 롤링 v1.0 (0) | 2010/01/31 |
| jQuery 1.4 Released (0) | 2010/01/16 |
| jQuery - live() (0) | 2010/01/13 |
| jQuery - data(), removeData() (0) | 2010/01/12 |
| window.onload 여러곳에서 사용하기 (0) | 2009/12/04 |
| [Link] jQuery Cheat Sheet (0) | 2009/11/05 |
| 마우스로 드래그해서 선택한 텍스트 가져오기 (0) | 2009/09/04 |
| 이미지 파일첨부시 업로드 이미지 미리보기 (IE8, Firefox 3) (13) | 2009/09/03 |
| [Link] Introduction to HTML Applications(HTAs) (0) | 2009/06/08 |
| [Link] execCommand compatibility(호환성) (0) | 2009/05/20 |
이올린에 북마크하기
