<script type="text/javascript">
    function abc(){
        //js中有个变量arguments,可以访问所有传入的值
        for(var i=0; i<arguments.length; i++){
            window.alert(arguments[i]);
        }
    }
    abc(2,5,6);
    </script>

 

相关文章:

  • 2021-05-31
  • 2021-11-05
  • 2021-05-13
  • 2021-06-22
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案