-
Notifications
You must be signed in to change notification settings - Fork 0
/
ajax.html
44 lines (41 loc) · 1.17 KB
/
ajax.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>title</title>
<link rel="stylesheet" type="text/css" href="./css/api.css"/>
<style>
body{
}
</style>
</head>
<body>
</body>
<!-- <script type="text/javascript" src="./script/HttpClient.js"></script> -->
<script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript">
apiready = function(){
api.ajax({
url : 'http://192.168.1.195/tc/a/login',
method : 'POST',
headers : {
"Content-Type" : "application/x-www-form-urlencoded",
"Cookie":"zjkjrdp.session.id=ccea31d03b6c4e699420673a5f712ec6aaaaaaaaa"
},
data : {
values : {
password : 'admin123',
username : 'tcs_qiye',
mobileLogin : true,
rememberMe : true
}
}
}, function(result, err) {
console.log(JSON.stringify(result));
console.log(JSON.stringify(err));
});
};
</script>
</html>