jQuery clone() 方法
jQuery 教程
· 2019-03-27 12:26:48
实例
克隆所有的 <p> 元素,并插入到 <body> 元素的结尾:
$("button").click(function(){
$("p").clone().appendTo("body");
});
定义和用法
clone() 方法生成被选元素的副本,包含子节点、文本和属性。
语法
$(selector).clone(true|false)
| 参数 | 描述 |
|---|---|
| true | 规定需复制事件处理程序。 |
| false | 默认。规定不复制事件处理程序。 |
点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html
Python for Data Analysis
Wes McKinney / O'Reilly Media / 2012-11-1 / USD 39.99
Finding great data analysts is difficult. Despite the explosive growth of data in industries ranging from manufacturing and retail to high technology, finance, and healthcare, learning and accessing d......一起来看看 《Python for Data Analysis》 这本书的介绍吧!