Object methods commonly used in the project

1、Object.assgin(target,source1,source2....)

as the target audience, source of the source object, the return value audiences

This method is mainly used for the object of merging, the all enumerated attribute of the source object to the target source is merged object target.

Object.assgin This is accomplished by a shallow copy, only copy itself properties of the source object, the source object if the value of a property is an object, then copy the target object is a reference to the object

Guess you like

Origin www.cnblogs.com/theblogs/p/12207955.html