-
Notifications
You must be signed in to change notification settings - Fork 0
/
lc.html
54 lines (46 loc) · 1.14 KB
/
lc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
table{
border:1px solid #00A9E7;
border-collapse: collapse;
width:80%;
}
</style>
<script src="jquery-1.8.3.min.js">
</script>
<script src="jquery.fullPage.min.js"></script>
<script>
$(function(){
$("#add").click(function(){
str="<tr><td><input type='text' class='text'/></td><td><input type='text' class='text'/></td><td><input type='button' value='删除' class='delete'/></td></tr>";
$("table").append(str);
$(".text").blur(function(){
})
});
$("table").on("click",".delete",function(){
$(this).parent().parent().remove();
})
})
</script>
</head>
<body>
<table border="1" >
<tr>
<td>最低额度</td>
<td>最高额度</td>
<td>操作</td>
</tr>
<tr>
<td><input type="text" class="text" value="100"/></td>
<td><input type="text" class="text" value="200"/></td>
<td><input type="button" value="删除 " class="delete"/></td>
</tr>
</table>
<input type="button" value="添加" id="add"/>
<input type="button" value="保存" id="save"/>
</body>
</html>