Manipulation-Copying Posted on 2016-07-11 Edited on 2023-11-24 In jQuery Views: Disqus: 一、.clone() 可用來複制一個元素的屬性、事件、data與子元素底下的所有架構。 有兩種多載方法 .clone( [Boolean withDataAndEvents ] ) .clone( [Boolean withDataAndEvents ] [, Boolean deepWithDataAndEvents ] ) 以上多載方法參數預設值皆為false 基於效能,.clone()方法不會複制textarea、select的文字內容。