我在这里得到了这个 CGI 代码:
\$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "scripts/run.cgi",
"fnServerParams": function ( aoData ) {
aoData.push( { "mysqltablename": "MYSQL_123490dfasdf039a" } );
},
"iDisplayLength": 50
} );
我不明白如何访问 run.cgi 端的 key:value (mysqltable,MYSQL_123490dfasdf039a)。我尝试了以下但没有看到它列出。帮助。
new CGI
...
my %paramstemp = $q->Vars;
open (FILE, ">/proj/hwmodels/unix_webserver/temp/asdf") ;
print FILE Dumper \%paramstemp;
close FILE;