<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>复制元素节点</title>
<script src="jquery-1.8.0.js"></script>
</head>
<style type="text/css">
</style>
<script type="text/javascript">
$(function(){
$("img").click(function(){//有true可以把事件带过去
$(this).clone(true).appendTo("span");
});
});
</script>
<body>
<span><img src="Images/1.jpg" alt="" /></span>
</body>
</html>
复制元素节点
最新推荐文章于 2023-01-14 17:45:51 发布