- 判断数组元素长度 添加tr
- 判断数组属性长度 添加td
- 最后创建td 添加删除链接 注册点击事件 删除该链接的父亲的父亲
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
table {
border-collapse: collapse;
width: 700px;
height: 200px;
}
thead {
background-color: dimgrey;
}
table,
tr,
th,