다른 jquery와 충돌하는 문제가 있습니다.이 권한을 코딩했는지 말해 줄 수 있습니까? 당신이 jQuery를의 여러 인스턴스를 사용하거나 다른 라이브러리가 $
을 사용하여 간섭을 피할 수 $.noConflict를 사용jquery 페이지의 다른 jquery와 충돌합니다.
//Relinquish jQuery's control of the "$" variable.
$.noConflict();
jQuery(document).ready(function($) {
// Code that uses jQuery's $ can follow here.
$(".movie").mb_YTPlayer();
});
:
<script type="text/javascript">
jQuery(function(){
var $mov=$(document);
$mov.ready(function(){
(".movie").mb_YTPlayer();
});
});
</script>
무엇을 의미하나요? –
시도해 봤어 http://api.jquery.com/jQuery.noConflict/ –