如何获取数据表中行的值

How to get the value of the row in DataTables

数据表运行下面的语句看行列应该填什么数据

$(document).ready( function () {
    var lastIdx = null;
    var idDoc = "<?php echo $_GET['idDoc'];?>";
    var table = $('#tformulario').DataTable( {
        "order": [[ 1, "asc" ]],
        "aProcessing": true,
        "aServerSide": true,
        "stateSave":true,
        "ajax": "{!! URL::to ('/datosFormulario?idDoc="+idDoc+"')!!}",
        "language": {

我想获取或保存到 returns ajax?

的变量

read the docs

您可以使用 dataSrc 作为函数来保存结果,然后 return 它。