---
title: "编程语言概念：闭包"
author: "shellfj"
date: "2012-09-12T21:06:51Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2012-09-12T21:06:51Z"
id: 1677176
url: "https://shellfj.iteye.com/blog/1677176"
---

编程语言中，闭包的好处：
  1. 延长对象的生命周期
  2. 封装外部对象的成员变量
具体请看下面的连接：

Javascript闭包<http://www.felixwoo.com/tag/closure>
Java闭包<http://www.cnblogs.com/chenjunbiao/archive/2011/01/26/1944417.html>