函数的小括号

174 阅读1分钟

() 函数调用运算符

function buluohe() { console.log(1) }

buluohe() 调用函数,得到值1 buluohe 将函数名作为函数的指针,用来传递参数,传递的是函数在内存的地址位置

let renhanhan =  buluohe   	拷贝函数
let renhanhan =  buluohe()	传递属性