-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththisistest.py
97 lines (65 loc) · 2.92 KB
/
thisistest.py
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
testdata="""<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>测试页面</title>
</head>
<body>
Hello<br>
<button onclick='dosubmitdelete()'>点此删除</button>
<br>
杂乱无章
<script type="text/javascript">
function folderoff(){
document.getElementById('folder').style.display='block';
}
function fileoff(){
document.getElementById('file').style.display='block';
}
function folderon(){
document.getElementById('folder').style.display='none';
}
function fileon(){
document.getElementById('file').style.display='none';
}
function urlpage(){
index=((window.location.protocol)+'//'+location.hostname+('/folder'));
if ((location.href)==(index)){
alert ('当前已经在首页了,无法回退');
}else{
history.back(-1);
}
}
function dosubmitdelete(){
document.getElementById('submit.delete').style.display='block';
document.getElementById('submit.delete').click();
}
</script>
<form name='firstform'action="/test" method="POST">
<div class="mybox">
<p>1、请选择你喜欢吃的甜品:</p>
<input type="hidden" style="visibility: hidden;" name="formname" value="firstform" />
<input type="checkbox" class="mycheckbox" name='mycheck' value="雪糕"/>雪糕
<input type="checkbox" class="mycheckbox" name='mycheck' value="蛋糕"/>蛋糕
<input type="checkbox" class="mycheckbox" name='mycheck' value="无"/>无
</div>
<div class="mybox">
<p>1、请选择你喜欢的运动:</p>
<input type="checkbox" class="mycheckbox" name='mycheck' value="滑雪"/>滑雪
<input type="checkbox" class="mycheckbox" name='mycheck' value="爬山"/>爬山
<input type="checkbox" class="mycheckbox" name='mycheck' value="无"/>无
</div>
<div class="mybox">
<p>1、请选择你喜欢吃的美食:</p>
<input type="checkbox" class="mycheckbox" name='mycheck' value="烧烤"/>烧烤
<input type="checkbox" class="mycheckbox" name='mycheck' value="海鲜"/>海鲜
<input type="checkbox" class="mycheckbox" name='mycheck' value="无"/>无
</div>
<!--<div><button id="save">提交</button></div>-->
<input style="visibility: hidden;"id='submit.download'type='submit' name='submit'value='下载'>
<input style="visibility: hidden;"id='submit.delete'type='submit' name='submit'value='删除'>
</form>
<button onclick='dosubmitdelete()'>点此删除</button>
</body>
</body>
</html>"""