Herhangi bir kelime yazın!

"closures" in Chinese (Traditional)

關閉結束閉包 (編程)

Definition

關閉是指被關閉的事物或關閉事件(例如商店、學校或道路的結束)。在程式設計中,“閉包”是一種擁有自己私有環境的函數。

Usage Notes (Chinese (Traditional))

'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 中,**閉包**允許你在函數中保存狀態。