# ViewSwitchInfo

## 属性

* `srcElement: HTMLElement | null` - 源视图的 DOM 骨架。如果视图是直接访问进入的，则为 `null`
* `targetElement: HTMLElement` - 目标视图的 DOM 骨架
* `type:` [`ViewSwitchType`](/lei-xing/viewswitchtype.md) - 视图跳转的方式
* `trigger:` [`ViewSwitchTrigger`](/lei-xing/viewswtichtrigger.md) - 视图跳转的触发来源
* `render: Function` - 界面渲染动作

{% hint style="warning" %}
界面渲染动作，由 View\.js 提供，包含了活动视图的切换和关联事件的触发等，开发者需要根据动画的播放效果，在恰当的时机，例如：动画播放完毕后，执行该方法。
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api.view-js.com/lei-xing/viewswitchinfo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
