闭包的产生
当一个嵌套的内部(子)函数引用了嵌套的外部(父)函数的变量(函数)时,就产生了闭包
闭包的理解
一.闭包是嵌套的内部函数
二.是包含被引用变量的对象
注意:闭包存在于嵌套的内部函数中
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.