Skip to content

jQuery

Overview

[jQuery] is a JavaScript library. See official apis or Chinese version.

Utilities

extend

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.