<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
#box{
width: 500px;
min-height: 200px;
border: 1px solid;
}
#box>div{
width: 300px;
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div>
<input type="text" class="search">
<button type="button" onclick="searchFn()">搜索</button>
<div id="box">
<!-- <div>
<span>名称</span>
<button type="button">删除</button>
</div> -->
</div>
</div>
<script type="text/javascript">
// 模拟数据
var arr = ["王迪","孙小萍","吴泽民"];
// 获取DOM
var box = docum
js:搜索(代码)
最新推荐文章于 2024-05-07 23:35:02 发布