1
我試圖讓數組中param
,一切都與單個數據效果很好,但不適用於陣列...如何獲得Dancer2的多參數?
客戶端(從瀏覽器發送的參數列表):
list[1] null
list[2] 2
list[3] 10
list[4] null
服務器端:
any ['get','post'] => '/save_list' => sub {
my $items = param ('list');
#result = null, mb is only the first element
#my $items = param ('list[]');
#result = null
#my @items = param ('list[]');
#result = empty
#my @items = param ('list');
#result = empty
};
我在哪裏錯了?
我的版本Dancer2-0.155004
什麼是被調用的URL? – 2014-12-06 18:25:06
https://www.stopbit.ru/uuppo點擊「序列化」 – Lex9sysT2 2014-12-06 18:29:47
祝你好運...... – 2014-12-06 20:23:30