> For the complete documentation index, see [llms.txt](https://api.view-js.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.view-js.com/lei-xing/viewinitializer.md).

# ViewInitializer

## 签名

`(init: Function) => void`

## 入参

1. `init: Function` - 初始化动作执行句柄，由 View\.js 提供，由 开发者 在恰当时机执行。

{% hint style="warning" %}
如果 init 方法没有被执行，则 View\.js 将无法完成初始化。
{% endhint %}

## 返回

无。
