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

· 2013-03-25 (월) 16:39:19 · 3402

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>
  을 삽입하라  

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

자유게시판

202,871건
+
제목 글쓴이 날짜 조회
13-03-25 조회 1,319
13-03-25 조회 4,987
13-03-25 조회 1,247
13-03-25 조회 1,247
13-03-25 조회 3,403
13-03-25 조회 1,293
13-03-25 조회 1,265
13-03-25 조회 1,968
13-03-25 조회 4,902
13-03-25 조회 1,264
13-03-25 조회 1,365
13-03-25 조회 1,537
13-03-25 조회 1,811
13-03-25 조회 2,408
13-03-25 조회 1,366
13-03-25 조회 3,655
13-03-25 조회 5,463
13-03-25 조회 1,790
13-03-25 조회 1,171
13-03-25 조회 1,989