jQuery
06. [jQuery] 제이쿼리 최신 버전에서 삭제된 이전 버전의 메서드 사용하기
drizzle0925
2021. 9. 14. 12:48
728x90
제이쿼리는 최신 버전으로 자주 업그레이드합니다.
이렇게 최신 버전을 사용하다 보면 이전 버전에서 자주 사용했던 기능(메서드)이 삭제되어 사용할 수 없는 경우가 종종 있습니다. 이런 경우 최신 버전에서 삭제된 이전 버전의 기능을 사용하려면 'Migrate plugin'을 설치하면 됩니다.
아래 사이트로 이동합니다.
Download jQuery | jQuery
link Downloading jQuery Compressed and uncompressed copies of jQuery files are available. The uncompressed file is best used during development or debugging; the compressed file saves bandwidth and improves performance in production. You can also download
jquery.com
[Download the compressed, production JQuery Migrate 1.4.1]을 클릭한 후 'js' 폴더에 내려받습니다.
HTML의 <head> 영역 안에 제이쿼리 최신 버전의 라이브러리 파일을 연동한 태그 다음 부분에 내려받은 [Jquery Migrate 1.4.1] 파일을 연동합니다.
<head>
<meta charset ="UTF-8">
<title>제이쿼리 연동</title>
<script src="js/jquery.js"></script>
<script src="js/jquery-migrate-1.4.1.min.js"></script>
</head>
728x90