2012-04-12 3 views
2

모바일에서 볼 사이트를 만들고 있으며 effects.i에 모바일 CSS 및 jquery를 사용하여 스타일 및 효과에 아래 코드를 사용했습니다. 내 사이트에서jquery 모바일 및 jquery에서 jquery 충돌을 해결하는 방법

<link rel="stylesheet" href="<?=base_url()?>css/jquery_01.css" /> 

<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> 
<script src="http://code.jquery.com/mobile/1.1.0-rc.2/jquery.mobile-1.1.0-rc.2.min.js"></script> 

내가 사용하고 그래서 내가 포함 할 때 작품은 위의 모바일 jquery.I 인식하지 오전되지 않습니다 도면에 대한 JQuery와

http://slot.pixelass.com/ 

하지만 jQuery를 그리기위한 부분이 how to tackle jquery conflict입니다.

누군가에게 도움을 주시면 도움을받을 수 있습니다. 미리 감사드립니다.

+0

jquery 모바일 만 사용하지 않는 이유는 무엇입니까 ?? – Baz1nga

+0

슬롯 머신을위한 모바일 jquery를 많이 찾았지만 얻지는 못했습니다. –

+0

http://jquerymobile.com/demos/1.0a2/experiments/api-viewer/docs/jQuery.noConflict/index.html this – Baz1nga

답변

0

다른 라이브러리와의 충돌을 제거하기 위해 jQuery.noConflict()이라는 특정 jQuery 함수가 있습니다. jQuery's documentation의 스 니펫은 다음과 같습니다.

<script type="text/javascript"> 
    // This takes out the jQuery variable '$' from the global scope 
    $.noConflict(); 
    jQuery(document).ready(function($) { 
    // Code that uses jQuery's $ can follow here. 
    }); 
    // Code that uses other library's $ can follow here. 
</script> 
관련 문제