function f(){ var x=0; } var v=f;//作为变量的值 function f1(){ return f } //作为返回值 setTimeout(function() { console.log('hi'); },1000);//作为函数参数