-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (39 loc) · 1.27 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>vue-example</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!--<link rel="stylesheet" type="text/css" href="index.css">-->
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<div class="tablist">
<a class="tabitem" href="#shoplist-one">tab1</a>
<a class="tabitem" href="#shoplist-two">tab2</a>
<a class="tabitem" href="#shoplist-three">tab3</a>
</div>
<div class="container">
<div class="button" style="width: 100px;height: 50px;border: 1px solid red;">点击我</div>
</div>
<!--<script src="index.js"></script>-->
<script>
$(function() {
$('.button').click(function() {
$.ajax({
method: "POST",
url: "http://localhost:3004/string",
data: {
name: "John",
location: "Boston"
}
})
.done(function(msg) {
alert("Data Saved: " + msg);
});
})
})
</script>
</body>
</body>
</html>