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
21777f52
authored
2018-03-17 21:22:00 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
a54c7c3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
application/views/work/index.php
application/views/work/index.php
View file @
21777f5
...
...
@@ -105,13 +105,23 @@
searching : false,//是否显示搜索
iDisplayLength:10,
bLengthChange: false,
ajax: '
<?=
site_url
(
"work/data"
)
?>
',
dataSrc: function ( json ) {
alert('
json
')
for ( var i=0, ien=json.data.length ; i<ien ; i++ ) {
json.data[i][0] = '
<
a
href
=
"/message/'+json.data[i][0]+'>View message</a>';
//ajax: '
<?
//=site_url("work/data")?>//',
// dataSrc: function ( json ) {
// alert('json')
// for ( var i=0, ien=json.data.length ; i<ien ; i++ ) {
// json.data[i][0] = '<a href="/message/'+json.data[i][0]+'>View message</a>';
// }
// return json.data;
// },
ajax
:
{
url
:
'<?=site_url("work/data")?>'
,
dataSrc
:
function
(
json
)
{
alert
(
'json'
)
for
(
var
i
=
0
,
ien
=
json
.
data
.
length
;
i
<
ien
;
i
++
)
{
json
.
data
[
i
][
0
]
=
'<a href="/message/'
+
json
.
data
[
i
][
0
]
+
'>View message</a>'
;
}
return
json
.
data
;
}
return json.data;
},
columns
:
[
{
data
:
"id"
,
render
:
function
(
data
,
type
,
full
)
{
...
...
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