跳转至

jQuery

Utilities

Merge the contents of two or more objects together into the first object.

var object = $.extend(object1, object2); // merge object2 into object1, the object1 will be modified.
var object = $.extend({}, object1, object2); // if u don't want target to be modified.
var object = $.extend(true, object1, object1); // merge recursively, defaults to false.

参考