test.php
1.44 KB
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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="stylesheet" type="text/css" href="/resource/static/h-ui/css/H-ui.min.css"/>
<?php
if (isset($styles) && is_array($styles)) {
foreach ($styles as $style) {
echo '<link rel="stylesheet" type="text/css" href="' . $style . '" />';
}
}
?>
<meta name="keywords" content="">
<meta name="description" content="">
<title></title>
<script>
var apiBaseUrl = "http://151.28ms.com:8088/";
</script>
</head>
<body>
<script type="text/javascript" src="/resource/lib/jquery/1.9.1/jquery.min.js"></script>
<script>
$.ajax({
type: "GET",
url: "http://test.smalldebit.club/api/Debit/GetUserDebitRecords?userId=7",
beforeSend: function (request) {
request.setRequestHeader("token", "926EE68FEF39A83EBFAAC7AF632A4737");
},
success: function (result) {
console.log(result);
}
});
// $.get('http://test.smalldebit.club/api/Debit/GetUserDebitRecords?userId=7', function (d) {
// console.log(d)
// });
</script>
</body>
</html>