我想做这样的事情:
function start(){
// Change the first argument in the argument list
arguments[0] = '<h1>' + arguments[0] + '</h1>';
// Call log with the new arguments
// But outputs: TypeError: Illegal invocation
log.apply(this, arguments);
}
function log(){
console.log(arguments);
// should output -> ['<h1>hello<h1>', 'world', '!']
}
start('hello', 'world', '!');