hc学习平台

 找回密码
 立即注册
搜索
热搜: 活动 交友 javakc
 › 1337735459 › 日志

【函数】使用arguments 求一组数中的最小值

2022-10-21 16:10:11 查看(96) 回复(0)

<!DOCTYPE html> <html lang="en"> <head>  <meta charset="UTF-8">  <title>Title</title>  <script>  function f(){ let a=arguments.length;  let b=arguments[0];  for (i=0;i<a;i++){ if (b>arguments[i]){
              b=arguments[i]
            }
          }return b;  } v=f(1,2,3,4,);  document.write(v);  </script> </head> <body>  </body> </html>

评论 (0 个评论)

facelist

全部作者的其他最新日志



站点统计|举报|Archiver|手机版|小黑屋|Comsenz Inc.

GMT+8, , Processed in 0.195171 second(s), 9 queries .

Powered by javakc! X1.0

© 2004-2014 javakc

f1208.com 备案号:京ICP备14030918号-1

返回顶部