标签:read static ready ati https jquery doctype oob com
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("p").clone().appendTo("body");
});
});
</script>
</head>
<body>
<p>这是一个段落。</p>
<p>这是另一个段落。</p>
<button>克隆所有P元素,在body元素中插入它们</button>
</body>
</html>
标签:read static ready ati https jquery doctype oob com
原文地址:https://www.cnblogs.com/gasolhome/p/13227743.html