varfoo=function(...args){//要求实现函数体}varf1=foo(1,2,3);f1.getValue();//6输出是参数的和varf2=foo(1)(2,3);f2.getValue();//6varf3=foo(1)(2)(3)(4);f3.getValue();//10