console.log(fun()); function fun(){ console.log(1); }
//////输出结果为:
1
undefined
console.log(fun()); function fun(){return 1;}
输出结果只有1,没有undefined