0

datatables jQuery Pluginのnumeric-commaを使用していて、数値のコンマ値で並べ替えたいと思っています。

datatablesのアドバイスに従って行こうとすると、エラーが発生します

エラー:k [(qa?qa: "string")+ "-" + h[c][1]]は関数ではありません

これが私のコードです

var oTable = $('#transactiontable').dataTable( {
                "iDisplayLength": 10,
                "aLengthMenu": [[10, 20, 50, -1], [10, 20, 50, "All"]],
                "bProcessing": true,
                /*"bServerSide": true,*/
                "oLanguage": {
                    "sEmptyTable": "There is no transaction found.",
                    "sSearch": "Search all columns except few:"
                },
                "sAjaxSource": "transactions-processing.php",
                "sScrollX": "100%",
                "sScrollXInner": "3000px",
                "bScrollCollapse": true,
                "sPaginationType": "full_numbers",
                "aoColumnDefs": [
                    {
                        "bSortable": false,
                        "aTargets": [ 18,19,20,21,22 ]
                    },
                    {
                        "sType": "numeric-comma",
                        "aTargets": [ 3 ]
                    }
                ],
                /*"fnRowCallback": function( nRow, aaData, iDisplayIndex ) {
                    if ( aaData[1] == "5" ){
                        $('td:eq(1)', nRow).addClass( 'testrow' );
                    }
                },*/
                "fnInitComplete": function () {
                    new FixedColumns( oTable, {
                        "iLeftColumns": 2,
                        "iRightColumns": 1
                    });
                }
            });
            <?php }?>
        });

誰かが私のコードをチェックして、私が間違っているところを教えてもらえますか...?

前もって感謝します

4

1 に答える 1

0

DataTables デバッガー ( http://debug.datatables.net/ ) を使用してテーブルを実行すると、何が起こっているかの手がかりが得られる場合があります。縮小されていないバージョンの DataTables を使用すると、どのようなエラーが発生しますか?

于 2012-06-22T13:27:57.770 に答える