while ($sub_result=mysql_fetch_array($stmt,MYSQL_BOTH))
{
$sub_departmentid[]=$sub_result[departmentid];
}
echo "<td width='20'><input type='checkbox' name='chkdepart' value='$menu[departmentid]' onclick=selectAll($sub_departmentid,this)></td>"; js函数
function selectAll(department,all)
{
请问department要怎么取到$sub_departmentid数组传过来的值
}
{
$sub_departmentid[]=$sub_result[departmentid];
}
echo "<td width='20'><input type='checkbox' name='chkdepart' value='$menu[departmentid]' onclick=selectAll($sub_departmentid,this)></td>"; js函数
function selectAll(department,all)
{
请问department要怎么取到$sub_departmentid数组传过来的值
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货