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.
$.ajax()とは異なり、またはと$.extend()は異なり、jQueryの拡張機能を作成したいと思います$("selector").css()。
$.ajax()
$.extend()
$("selector").css()
したがって、カスタムjQuery関数を次のように呼び出すことができます。$.myCustomFunction("args");
$.myCustomFunction("args");
jQueryオブジェクトに割り当てるだけです。
jQuery
jQuery.myCustomFunction = function() {};