> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kasoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.

# arc:finally

> 控制离开 arc:call、arc:try、arc:render 或 arc:script 语句后执行清理部分，无论是否发生异常。

export const siteNameShort = "知行之桥";

arc:finally 关键字用来控制退出 [arc:call](./op-arc-call)，[arc:try](./op-arc-try)，[arc:render](./op-arc-render) 或 [arc:script](./op-arc-script) 语句时执行的一部分脚本。这是一种简便的方式来清理生成文档的格式。

## 参数

无

## 控制属性

无

## 示例

在无法处理的异常发生时，arc:finally 代码块就会执行。这可以用来确认标签关闭。

```xml theme={null}
<table>
<arc:call op="listCustomers" out="customer">
  <arc:first>
    <thead>
        <arc:enum item="customer">
          <td>[_attr]</td>
        </arc:enum>
    </thead>
  </arc:first>
  <tr>
      <arc:enum item="customer">
        <td>[_value]</td>
      </arc:enum>
  </tr>
  <arc:finally>
  </table> <!-- ensure tags are still closed -->
  </arc:finally>
</arc:call>
```

## 另请参阅

* [arc:try](./op-arc-try)：定义一个作用域，来捕获异常。
* [arc:call](./op-arc-call)：循环运算器返回的对象。
* [arc:render](./op-arc-render)：基于 {siteNameShort}Script 模板生成文件。
* [arc:script](./op-arc-script)：创建一个脚本块。
