Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jQueryソースコードを確認しましたが、jQueryが名前空間機能を実装する方法がわかりませんか?
名前空間は、関数スコープとオブジェクトを使用してJavaScriptで処理されます。
jQueryは、デフォルトで2つのグローバル変数を公開します:jQueryと$。
jQuery
$
あなたは同じようなことをすることができます...
(function(global) { global.someGlobalIdentifier = { // Whatever you want... }; })(this);