ประโยคภาษาจีน : 中文句子 |
---|
dāng 当 yí gè 一个 bì bāo 闭包 bǔ huò 捕获 yí gè 一个 biàn liàng 变量 shí 时 tā 它 jiù 就 huì 会 jiāng 将 zhè ge 这个 biàn liàng 变量 tí qǔ 提取 chū 出 tā 它 de 的 běn dì 本地 fàn wéi 范围 yí 移 dào 到 yí gè 一个 nì míng 匿名 duì xiàng 对象 lǐ 里 |
When a closure "captures" a variable it "lifts" the variable out of its local scope and effectively moves it into an anonymous object. |