weixin_慕仙1176837
2020-09-07 15:46
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>返回值函数</title>
<script type="text/javascript">
function app2(x,y)
{ var sum,x,y;
sum = x * y;
return sum;
}
var req1=app2(5,6);
var req2= app3(2,3);
var sumq=req1+req2;
document.write("req1的值:"+req1+"<br/>");
document.write("req2的值:"+req2+"<br/>");
document.write(req1+"与"+req2+"和:"+sumq);
</script>
</head>
<body>
</body>
</html>
var req1=app2(5,6);
var req2= app3(2,3);
var sumq=req1+req2;
var req2的app3改成app2(2,3)
JavaScript进阶篇
468061 学习 · 21891 问题
相似问题