SOURCE

console 命令行工具 X clear

                    
>
console
$(function () {

    $(".shanchu").click(function () {
        $(this).parent().parent().remove()
    })

    $('.tianjia').click(function () {
        let x = $('#table tr:eq(1)');
        let y = x.clone(true);
        y.appendTo(x.parent());
    })
    $('.chaxun').click(function(){

        
    })
})
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js">
</script>
<p>
	<a href="#" class="tianjia">增加</a>
	<input type="text"/>
			<a href="#" class="chaxun">查询</a>
		</p>
		<table border="1" id="table">
			<thead>
				<tr>
					<th>ID</th>
					<th>姓名</th>
					<th>薪水</th>
					<th>功能</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>1</td>
					<td>张三</td>
					<td>8000</td>
					<td>
						<a href="#">修改</a>
						<a href="#" class="shanchu">删除</a>
					</td>
				</tr>
				<tr>
					<td>2</td>
					<td>李四</td>
					<td>9000</td>
					<td>
						<a href="#">修改</a>
						<a href="#" class="shanchu">删除</a>
					</td>
				</tr>
				<tr>
					<td>3</td>
					<td>王五</td>
					<td>9000</td>
					<td>
						<a href="#">修改</a>
						<a href="#" class="shanchu">删除</a>
					</td>
				</tr>
			</tbody>
		</table>