jQuery 기타 noConflict() 메서드

❮ jQuery 기타 메소드

예시

noConflict() 메서드를 사용하여 jQuery 변수의 새 이름을 지정합니다.

var jq = $.noConflict();

정의 및 사용

noConflict() 메서드는 $ 변수에 대한 jQuery의 제어를 해제합니다.

이 방법을 사용하여 jQuery 변수에 대한 새 사용자 정의 이름을 지정할 수도 있습니다.

팁: 이 방법은 다른 JavaScript 라이브러리가 함수에 $를 사용할 때 유용합니다.


통사론

$.noConflict(removeAll)

Parameter Description
removeAll Optional. A Boolean value that specifies whether or not to release jQuery's control of ALL jQuery variables (including "jQuery")

❮ jQuery 기타 메소드