js 函数函数实参和形参 实参大于形参不会报错 小于形参 12345678function sum (){ var a =0; for(var i = 0;i<arguments;i++){ a+=arguments[i] } console.log(a)}sum(1,3,4,5,7) 实参未传值 赋值 得到undefined 12345function test(a,b){ b=3; console.log(argument[1]) //undefined}test(1) Author: 孟健康Link: http://yoursite.com/2020/11/05/js/Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally. 欢迎打赏微信支付寶Previous Postjs拼接字符串Next Postpromise