thinkphpPOST接收数组出现:variable type error:array
$lmcjl = input('lmcjl');//错误!
print_r($_POST['nodes']);=> Array ( [0] => 1 [1] => 5 [2] => 7 [3] => 8 [4] => 9 )
解决:
request类不能接收数组
所以我直接改成了源生的
<?php
$lmcjl = $_POST['lmcjl'];
//或者
$lmcjl = $this->request->post();
?>