jQuery 1.8 --> 1.9 변경에 따른 해결 방법.... 원문

· 12년 전 · 3253

http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/

핵심은 중간에 있습니다.

If you’re on a recent version of jQuery core and have been avoiding deprecated features, these new jQuery releases may work for your code right out of the box. (Just remember, jQuery 2.0 doesn’t work on IE 6, 7, or 8!) Still, we recommend that you always start by including the jQuery Migrate plugin to see if it gives you any warnings.

The jQuery 1.9 final files are available on jQuery’s CDN, and should be available on the Google and Microsoft CDNs within a few days:

< script src="http://code.jquery.com/jquery-1.9.0.js"></script>
< script src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>

Or, for testing jQuery 2.0 beta 1, use the jQuery CDN:

< script src="http://code.jquery.com/jquery-2.0.0b1.js"></script>
< script src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>

For diagnostic purposes, you can also include the jQuery Migrate plugin with versions of jQuery all the way back to 1.6.4 to see what changes may cause issues with your code when you finally upgrade.

No matter which version of jQuery you use with the plugin, be sure to open the browser’s console to see what warnings or errors are being generated. Warnings given by the plugin start with the word “JQMIGRATE” and are listed in the plugin’s documentation. The description explains why the warning was given and how it can be fixed.



[ 왕 간단 요약  ]
1) http://sir.co.kr/bbs/board.php?bo_table=cm_free&wr_id=913305&sca=&sfl=&stx=&sst=&sod=&spt=0&page=3

2) 2.0 에서는 IE 6, 7, or 8! 을 지원하지 않으며, 기존 소스의 문제을 해결(?)하고 싶다면
    < script src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>
  을 삽입하라  

|
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

+
제목 글쓴이 날짜 조회
12년 전 조회 1,371
12년 전 조회 1,223
12년 전 조회 1,727
12년 전 조회 1,248
12년 전 조회 1,204
12년 전 조회 1,107
12년 전 조회 1,202
12년 전 조회 1,144
12년 전 조회 1,126
12년 전 조회 1,152
12년 전 조회 1,192
12년 전 조회 4,701
12년 전 조회 1,124
12년 전 조회 1,115
12년 전 조회 3,254
12년 전 조회 1,158
12년 전 조회 1,115
12년 전 조회 1,825
12년 전 조회 4,756
12년 전 조회 1,141
12년 전 조회 1,242
12년 전 조회 1,411
12년 전 조회 1,688
12년 전 조회 2,276
12년 전 조회 1,220
12년 전 조회 3,503
12년 전 조회 5,306
12년 전 조회 1,662
12년 전 조회 1,021
12년 전 조회 1,825