function test(aa){window.alert("你输入的是"+aa);}方法一:直接调用//编写一个函数,可以接受任意多个数,并计算他们的和//无法重载,abc2函数名不能重复function abc2(n1){// 可以无视参数n1//在js中有一个arguments,可以访问所有传入的值。//window.alert(arguments.length);//遍历所有的参数for(var i=0;i<arguments.length;i++){window.alert(arguments[i]);}}