ff6e9a94 by 杨建斌

init

1 parent f9bd996c
Showing 1 changed file with 22 additions and 15 deletions
......@@ -4,14 +4,15 @@
<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" />
<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.'" />';
if (isset($styles) && is_array($styles)) {
foreach ($styles as $style) {
echo '<link rel="stylesheet" type="text/css" href="' . $style . '" />';
}
}
?>
......@@ -26,10 +27,6 @@
<body>
<script type="text/javascript" src="/resource/lib/jquery/1.9.1/jquery.min.js"></script>
<script>
......@@ -92,7 +89,7 @@
layer.msg(msg);
}
$.extend( true, $.fn.dataTable.defaults, {
$.extend(true, $.fn.dataTable.defaults, {
sDom: '<"top">rt<"bottom"ip><"clear">',
aaSorting: [[1, "desc"]],
serverSide: true,
......@@ -106,7 +103,7 @@
var ret = {}, json = jQuery.parseJSON(json);
ret.data = json.data || [];
var draw = getUrlParam('draw');
if(draw) {
if (draw) {
ret.draw = draw;
}
ret.recordsTotal = 0;
......@@ -150,11 +147,21 @@
</script>
<script>
$.get('http://test.smalldebit.club/api/Debit/GetUserDebitRecords?userId=7',function (d) {
console.log(d)
$.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>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!