-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtest.html
43 lines (41 loc) · 858 Bytes
/
test.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
<html>
<head>
<script src="resources/js/jquery-1.6.js" type="text/javascript"></script>
<script type="text/javascript">
/*以下代码是点击录制的代码*/
function begin()
{
$.ajax({
type:"get",
async:false,
url:"http://localhost:8080/begin",
success:function(data){
alert(data);
},
error:function(){
alert("fail");
}
});
}
function end()
{
var filename = prompt("请输入你想要保存的文件名:");
$.ajax({
type:"get",
async:false,
url:"http://localhost:8080/save?filename=ddddd",
success:function(data){
alert(data);
},
error:function(){
alert("fail");
}
});
}
</script>
</head>
<body>
<button onclick="begin();">开始录制</button>
<button onclick="end();">结束录制</button>
</body>
</html>