-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
38 lines (37 loc) · 971 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>calc</title>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
function pay() {
axios.post('https://devjs-01.corp.aira.life:3017/', {
tx: '0x1231321',
token: '0x55555555555555555'
})
.then(function (response) {
console.log(response);
})
.catch((e) => {
console.log(e)
})
}
function pay2() {
axios.get('https://devjs-01.corp.aira.life:3017/account/0x008eb1c16451648e5ba1dabbf1aaf5d0b89d7e4c')
.then(function (response) {
console.log(response);
})
.catch((e) => {
console.log(e)
})
}
</script>
</head>
<body>
<button onclick="pay()">test</button>
<button onclick="pay2()">test 2</button>
</body>
</html>