![3500a3e7a244ff770568f0ae18f7d6d1.png](https://img-blog.csdnimg.cn/img_convert/3500a3e7a244ff770568f0ae18f7d6d1.png)
Ⅰ 文档处理
- js jQuery
- createElement('p') $('<p>')
- appendChild() append()
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>wot</title>
<script src='jquery.min.js'></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<div id="d1">
<p id="d2">div>p</p>
<span>div>span</span>
<p>dic>p</p>
</div>
</body>
</html>
let $pEle = $('<p>');
undefined
$pEle.text('