2011-12-26 5 views
0

본문의 특정 부분에 jQuery 파일을 사용하는 방법. jQuery 도구 파일의 원본 버전을 변경했기 때문에 HTML 페이지에서 두 파일 (변경된 원본)을 모두 사용하고 싶습니다.본문의 특정 부분에 JS 파일을 사용하는 방법

+0

가능한 복제본 http://stackoverflow.com/questions/1566595/can-i-use-multiple-versions-of-jquery-on-the-same-page –

답변

1

jQuery.noConflict() 다른 코드 페이지에로드 jQuery를 지원하기 위해 **v1.1**에 추가 된 global **$** variable를 사용한다 그리고 쉽게 예를 들어 같은 페이지

에 jQuery를 여러 버전을로드 할 수 있도록 : 상세 설명 및 자습서

<script type="text/javascript" src="other_lib.js"></script> 
<script type="text/javascript" src="jquery.js"></script> 
<script type="text/javascript"> 
    jQuery.noConflict(); 
    jQuery(document).ready(function($) { 
    // Code that uses jQuery's $ can follow here. 
    }); 
    // Code that uses other library's $ can follow here. 
</script> 

. 다음 방문하시기 바랍니다 :이 도움이

http://api.jquery.com/jQuery.noConflict/

Can I use multiple versions of jQuery on the same page?

http://blog.nemikor.com/2009/10/03/using-multiple-versions-of-jquery/

희망을.

+1

'jQuery (document) .ready (function ($) {' – jcubic

+0

) 예, 고마워요. – AlphaMale

관련 문제