JavaScript:函数名称和&之间有什么区别?功能参考?
问题描述:
我正在阅读Google Maps API,其中指出:
I'm reading the Google Maps API and it states that the:
"callback: The function to call once the script has loaded. If using the Auto-loading feature, this must specify a function name, not a function reference.
JavaScript函数名称与函数引用有什么区别?
What's the difference been a JavaScript function name vs a function reference?
答
功能:function func() {}
功能参考:func
函数名称:'func'