我正在使用 Jquery 数据表
$('#grid').dataTable( {
"sScrollY": 150,
"bPaginate": false,
"bJQueryUI": false,
"bAutoWidth": false,
"bFilter": true,
"bInfo": true,
"bScrollCollapse": false,
"fnDrawCallback": function ( oSettings ) {
/* Need to redo the counters if filtered or sorted */
if ( oSettings.bSorted || oSettings.bFiltered ){
for ( var i=0, iLen=oSettings.aiDisplay.length ; i<iLen ; i++ ){
$('td:eq(0)', oSettings.aoData[ oSettings.aiDisplay[i] ].nTr ).html( i+1 );
}
}
},
"oLanguage": {
"sZeroRecords": " Please Enter \"PO Items\" ",
"sEmptyTable": " Please Enter \"PO Items\" "
},
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [ 0 ] },
{ "bSortable": true, "aTargets": [ 1 ] },
{ "bSortable": false, "aTargets": [ 2 ] },
{ "bSortable": false, "aTargets": [ 3 ] },
{ "bSortable": false, "aTargets": [ 4 ] },
{ "bVisible": false, "aTargets": [ 4 ] },
{ "bSortable": false, "aTargets": [ 5 ] },
{ "bSortable": false, "aTargets": [ 6 ] },
{ "bSortable": false, "aTargets": [ 7 ] },
{ "bSortable": false, "aTargets": [ 8 ] },
{ "bSortable": false, "aTargets": [ 9 ] },
{ "bSortable": false, "aTargets": [ 10] }
],
"aaSorting": [[ 1, 'desc' ]]
} );
我只想让第 9 列可编辑,而不是全部。这个可编辑的只是客户端而不是服务器端。
有什么简单的方法吗?