跳到主要内容

复制

Description

创建提供对象的深拷贝

copy: (initialObject: any) => any

Parameters

  • initialObject - (required) object - 需要被拷贝的对象

Returns

  • clonedObject - (object) - 所提供对象的深拷贝

Example

var backupTask = gantt.copy(gantt.getTask(id));

Change log

  • 新增于版本 4.0
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.