问问题
2102 次
2 回答
1
您需要添加引号。
您的代码将输出:
DepartmentSelect(Deli)
而是这样做:
<SCRIPT LANGUAGE='javascript'>
DepartmentSelect('<?=$row["rDepartment"];?>');
</SCRIPT>
于 2012-06-13T19:29:25.923 回答
0
尝试:
<SCRIPT LANGUAGE='javascript'>
DepartmentSelect(<?php echo $row[rDepartment]; ?>);
</SCRIPT>
或者:
<SCRIPT LANGUAGE='javascript'>
DepartmentSelect(<?php echo $row["rDepartment"]; ?>);
</SCRIPT>
于 2012-06-13T19:10:35.223 回答