0
my $warranty_dates = $self->every_param('warranty_date');
my $state_ids = $self->every_param('state_id');
结果:Mojolicious every_param未填充阵列
$VAR1 = undef;
和
$VAR1 = '12/12/2017';
$VAR2 = '12/12/2017';
$VAR3 = '12/12/2017';
$VAR4 = '12/12/2017';
$VAR5 = '12/12/2017';
分别当由
die Dumper(@{$state_ids});
die Dumper(@{$warranty_dates});
尽管被示出为具有以下参数称为:
"state_id" => [
1,
1,
1,
1,
1
],
"warranty_date" => [
"12/12/2017",
"12/12/2017",
"12/12/2017",
"12/12/2017",
"12/12/2017"
你是怎么得到最后的输出快速的解释?这看起来像你有一个错字,或者'state_id'param中有一些不可见的字符。也许是'\ 0'? – simbabque