ドキュメント

Core/jQuery.extend

From jQuery JavaScript Library

Jump to: navigation, search

« Back to Core

jQuery.extend( object )

Extends the jQuery object itself.
Can be used to add functions into the jQuery namespace. See jQuery.fn.extend for more information on using this method to add Plugins.
Arguments:
objectObject
The object that will be merged into the jQuery object.
Examples:

Adds two functions into the jQuery namespace.

jQuery.extend({
  min: function(a, b) { return a < b ? a : b; },
  max: function(a, b) { return a > b ? a : b; }
});

jQuery.min(2,3); // => 2
jQuery.max(4,5); // => 5

NameType