1. 首页
  2. 考试认证
  3. 其它
  4. 程序员面试刷题的书哪个好 NoteBook 练习记事本

程序员面试刷题的书哪个好 NoteBook 练习记事本

上传者: 2024-09-08 16:03:32上传 ZIP文件 3.41MB 热度 5次
程序员面试刷题的书哪个好##说说你对闭包的理解##Talk about your understanding of closures使用闭包主要是为了设计私有的方法和变量。闭包的优点是可以避免全局变量的污染,缺点是闭包会常驻内存,会增大内存使用量,使用不当很容易造成内存泄露。 Using closures designed primarily to private methods and variables. Closure advantage of global variables are avoided contamination, the disadvantage is the closure will be permanent memory, the memory usage increases, improper use is likely to cause a memory leak.闭包有三个特性: Closures have three characteristics: 1.函数嵌套函数2.函数内部可以引用外部的参数和变量3.参数和变量不会被垃圾回收机制回收
下载地址
用户评论