"closures" in Chinese (Simplified)
关闭结束闭包 (编程)
Definition
关闭是指关闭的事物或者关闭的事件(如商店、学校或道路的结束)。在编程中,“闭包”是一种带有自己私有环境的函数。
Usage Notes (Chinese (Simplified))
'Closures' 多用于正式场合,比如学校、道路或企业的关闭。编程里的“闭包”是专业术语。注意不要与“clothes”(衣服)或“closet”(衣橱)混淆。
Examples
There are several closures this week due to the holiday.
本周由于假期有好几个**关闭**事件。
The government announced school closures for safety.
政府宣布为了安全实施学校**关闭**。
Road closures can cause traffic delays.
道路**关闭**会导致交通延误。
City closures after the storm surprised everyone.
风暴后城市的**关闭**让大家都很意外。
Because of new regulations, some businesses faced permanent closures.
因为新规定,有些企业遭遇了永久**关闭**。
In JavaScript, closures allow you to keep state inside a function.
在 JavaScript 中,**闭包**允许你在函数内部保存状态。