编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
jQuery API 开发手册

返回值:jQueryjQuery.extend(object)

概述

扩展jQuery对象本身。

用来在jQuery命名空间上增加新函数。 查看 'jQuery.fn.extend' 获取更多添加插件的信息。

参数

objectObjectV1.0

用以扩展 jQuery 对象

示例

描述:

在jQuery命名空间上增加两个函数。

jQuery 代码:
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
相关文章
jquery easyui datagrid filter row 可过滤行的数据表格 jquery easyui combotreegrid 树形表格下拉框 jquery easyui splitbutton 分割按钮 jquery easyui propertygrid 属性表格 ajaxerror callback jquery selector1 selector2 selectorn jqueryjquery.each object callback jqueryjquery.extend deep target object1 objectn jqueryjquery.extend object jqueryjquery.fn.extend object jqueryjquery $.each object callback jquery $.extend d tgt obj1 objn jquery jquery.extend object jquery jquery.fn.extend object php snmp fetch snmp object subtreephp splobjectstorage checks if the storage contains a specific objectphp swfdisplayitem scales the object in global coordinatesphp swish 函数 construct a swish objectphp tidy constructs a new tidy objectphp wkhtmltox pdf object create a new pdf object
关注编程学问公众号
编程学问网 湘ICP备20001732号