调用函数问题???
<script type="text/JavaScript">
function sum(x,y,z)
{
sum = x + y +z;
document.write(x+"、"+y+"、"+z+"和:"+sum+"<br/>");
sum(7,1,4);
sum(5,8,3);
</script>
--------------------------
结果
7、1、4和:12
undefined
???
sum(5,8,3);为什么不显示函数调用
<script type="text/JavaScript">
function sum(x,y,z)
{
sum = x + y +z;
document.write(x+"、"+y+"、"+z+"和:"+sum+"<br/>");
sum(7,1,4);
sum(5,8,3);
</script>
--------------------------
结果
7、1、4和:12
undefined
???
sum(5,8,3);为什么不显示函数调用
2016-11-08
举报