21777f52 by yangjianbin

init

1 parent a54c7c3f
......@@ -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) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!