php行吗,行内编辑(php)

$(document).ready(function () {

$("#example").dataTable({

//"iDisplayLength":10,

"sAjaxSource": "http://dt.thtxopen.com/datatables/dataListCUrl.php",

//'bPaginate': true,

"bDestory": true,

"bRetrieve": true,

//"bFilter":true,

"bSort": false,

//"bProcessing": true,

"aoColumns": [

{

"mDataProp": "name",

"fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {

$(nTd).addClass('inputTd').attr('id', 'td_' + sData + '_' + oData.id);

}

},

{

"mDataProp": "job",

"fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {

$(nTd).addClass('selectTd').attr('id', 'td_' + sData + '_' + oData.id);

//$(nTd).html(""+sData+"");

}

},

{"mDataProp": "note"},

{"mDataProp": "date"}

],

"sDom": "r>t>",

"sPaginationType": "bootstrap",

"language": {

"url": "http://cdn.datatables.net/plug-ins/e9421181788/i18n/Chinese.json"

},

"fnDrawCallback": function (data, x) {

$('#example tbody td.inputTd').editable('editable.php');

$('#example tbody td.selectTd').editable('editableSelect.php',

{

loadurl: 'json.php',

//data:{"10":"10","20":"20","30":"30"},

type: 'select'

//submit : '确定',

//submitdata: { _method: "post"}

});

}

});

});

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值