TIP게시판

제목 jQuery.live() 대신 jQuery.on()
글쓴이 milosz 작성시각 2013/03/07 08:12:00
댓글 : 4 추천 : 0 스크랩 : 0 조회수 : 16090   RSS
jQuery 1.7에서 .bind(), .live(), .delegate()가 .on()으로 통합되었고 1.9에서부터는 .live()가 없어졌다고 합니다.
.delegate()도 없어질 예정이라고 하네요.
 
.on()을 사용합시다~
 다음글 xdebug 강의 (7)
 이전글 CI 에 PHPUnit 사용하기 (링크) (1)

댓글

니삼 / 2013/03/07 08:58:57 / 추천 0
 As of 1.9, the event name string "hover" is no longer supported as a synonym for "mouseenter mouseleave". This allows applications to attach and trigger a custom "hover" event. Changing existing code is a simple find/replace, and the "hover" pseudo-event is also supported in the jQuery Migrate plugin to simplify migration.

후버쪽도 확인ㅎㅎ

한대승(불의회상) / 2013/03/07 14:42:26 / 추천 0
하나로 통일 되는건가요?
좋은 정보 감사!!!
박순철 / 2013/03/11 12:16:38 / 추천 0
 좋은 정보 ㄳ
홍구2 / 2013/03/19 13:15:39 / 추천 0
bind와 live는 성격이 좀 다른 것으로 알고 있는데 통합이 되는군요... 가끔 live는 먹히지만 on은 안 먹는 브라우저가 있었는데ㅠㅠ