JavaScript:函数名称和&之间有什么区别?功能参考? [英] JavaScript: what's the difference between a function name & function reference?

查看:57
本文介绍了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?

http://code.google.com/apis/ajax/documentation/#GoogleLoad

推荐答案

功能:function func() {}

功能参考:func

函数名称:'func'

这篇关于JavaScript:函数名称和&之间有什么区别?功能参考?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆