JS中函数名后面的括号加与不加的区别

function fun(){
return 3
}
var a=fun
var b=fun()
a是fun函数,b是3

猜你喜欢

转载自blog.csdn.net/philsonzhao/article/details/78563794