jQuery源码分析10: jQuery.extend
Description: Merge the contents of two or more objects together into the first object.
用法:
jQuery.extend( target, [ object1 ], [ objectN ] )
jQuery.extend( [ deep ], target, object1, [ objectN ] )
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
deep = false;
//< 首先判断argument[0]是否是true/false,若......
阅读全文