본문 바로가기

개발자이야기/JavaScript이야기

jquery와 prototype 동시 사용할때

반응형
API

http://docs.jquery.com/Using_jQuery_with_Other_Libraries

예시

<script type="text/javascript" src="/js/prototype.js"></script>

<script type="text/javascript" src="/js/jquery-1.8.0.min.js" charset="utf-8"></script>

<script type="text/javascript" src="/js/rico.js"></script>

이런 순으로 선언하고 
아래 부분에
var $j = jQuery.noConflict();
한 후
 jquery 사용 부분에 $대신 $j 로 사용하면 간단 해결
물론 prototye 과는 무조건 동시 사용 해야 할것 같다.... 
중복 사용되는 함수들이 많아서 어디선 이렇게 어디선 저렇게 하면 에러 투성이 .... 쯔


반응형

'개발자이야기 > JavaScript이야기' 카테고리의 다른 글

css 로 버튼 생성기  (0) 2013.10.22
한글unicode변환기  (0) 2013.07.10
eval.call  (0) 2009.10.22
ie6에서 fixed 처리 안되는 현상 수정  (0) 2009.09.10
jquery 여러 박스 모델  (0) 2009.09.04