发布于2017年2月11日 由dllenarguments function show(foo, bar) { window.alert(foo+' '+bar); } function run(f) { // use splice to get all the arguments after 'f' var args = Array.prototype.splice.call(arguments, 1); f.apply(null, args); } run(show, 'foo', 'bar');