[jQuery] jQuery 3.1 핵심 release note
포스팅 제목은 "jQuery 3.1 핵심 release note" 이지만, 3.1 에 국한되어있는 release note 가 아니라,
기존 프로젝트에서 jQuery1.8 을 썼어서.. 정확히는 1.8 에서 3.1 로 업그레이드 했을 때의 주요 변경사항이다 ^^;;
작성자 기준으로 뽑은거니까 다른 분들도 궁금하면 jQuery.com 들어가셔서 직접 Release Note 보는거 추천드립니다!
1. indexOf 의 표준화
-> https://github.com/jquery/jquery/commit/53aa87f3bf4284763405f3eb8affff296e55ba4f
- not present 는 `< 0`
- present 는 `> -1`
- at index 는 `===N`
2. jQuery.Numeric() 의 대체 함수
-> https://github.com/jquery/jquery/commit/3689963909880ed832ac17eabf7b9260927a68d8
- AS-IS : jQuery.Numeric()
- TO-BE : .isFinite()
3. 확장 for 함수 지원
-> https://jquery.com/upgrade-guide/3.0/#feature-for-of-loops-can-be-used-on-jquery-collections
- AS-IS : $.each({ })
- TO-BE : for( let item of items) {}
4. .size() 의 대체 함수(사용불가)
-> https://jquery.com/upgrade-guide/3.0/#breaking-change-deprecated-size-removed
- AS-IS : .size()
- TO-BE : .length
5. .bind() 와 .delegrate() 제거
-> https://jquery.com/upgrade-guide/3.0/#deprecated-bind-and-delegate
- .on() 으로 사용해야함
(개인적으로 4번 때문에 당황했어서 포스팅하게 됨 ...)