go top

函数作用域

网络释义

  Function Scope

函数作用域 ( Function Scope )是指在函数内定义的标识符,在其定义的函数内均有效,即不论在函数内的某一地方定义,均可以引用这种标识符。

基于110个网页-相关网页

短语

函数原型作用域 function prototype scope

有道翻译

函数作用域

Function scope

以上为机器翻译结果,长、整句建议使用 人工翻译 。

双语例句

  • 用于描述函数作用域和函数内嵌套的作用域的术语。

    Term used to describe function scope and the scopes nested inside a function.

    youdao

  • 仔细检查函数中所有使用的变量,如果有一个变量不是当前作用域定义的,而且使用了不止一次,那么我们就应该把这个变量保存在局部变量中,而使用这个局部变量来进行读写操作。

    Watch the variables being used in a function. If you notice a function using an out-of-scope variable more than once, store it in a local variable and use that instead.

    youdao

  • 人们也可以预先自定义一些迭代器,在函数的整个作用域内创建并使用。

    One could also foresee custom iterators being created and used entirely within the scope of a function.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定