例如:
<input name="district.id" value="" type="hidden"/>查看了I函数源代码中分割变量类型和变量名称的部分如下,将会导致第二个点号后面内容被抛弃if(strpos($name,'.')) { // 指定参数来源
list($method,$name) = explode('.',$name);
}else{ // 默认为自动判断
$method = 'param';
}建议增加explode的limit限制,保护name属性中的点号if(strpos($name,'.')) { // 指定参数来源
list($method,$name) = explode('.',$name,2);
}else{ // 默认为自动判断
$method = 'param';
} 最佳答案