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
e6e88c5e
authored
2018-03-17 23:33:03 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
02dbcba2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
application/views/common/footer.php
application/views/work/index.php
application/views/common/footer.php
View file @
e6e88c5
...
...
@@ -30,4 +30,9 @@
return
serializeObj
;
};
})(
jQuery
);
function
getUrlParam
(
name
)
{
var
reg
=
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
);
//构造一个含有目标参数的正则表达式对象
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
//匹配目标参数
if
(
r
!=
null
)
return
unescape
(
r
[
2
]);
return
null
;
//返回参数值
}
</script>
...
...
application/views/work/index.php
View file @
e6e88c5
...
...
@@ -101,7 +101,6 @@
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
var draw = null;
var table = $('#table').dataTable({
aaSorting: [[1, "desc"]],
serverSide: true,
...
...
@@ -123,6 +122,7 @@
dataFilter
:
function
(
json
)
{
var
ret
=
{},
json
=
jQuery
.
parseJSON
(
json
);
ret
.
data
=
json
.
data
;
var
draw
=
getUrlParam
(
'draw'
);
if
(
draw
)
{
ret
.
draw
=
draw
;
}
...
...
@@ -134,7 +134,6 @@
data
:
function
(
data
)
{
data
.
pageSize
=
data
.
length
;
data
.
currentPage
=
parseFloat
(
data
.
start
/
data
.
length
)
+
1
;
draw
=
data
.
draw
;
return
data
;
}
/*,
...
...
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