Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ff6e9a94
authored
2018-03-28 17:09:12 +0800
by
杨建斌
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
f9bd996c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
15 deletions
test.php
test.php
View file @
ff6e9a9
...
...
@@ -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>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment