jQuery Misc 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その他のメソッド