# 简介

![](https://3307771346-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LY_Ils999OpXSh4sDV8%2F-LrJKuIdMmdyUDTAGNsN%2F-LrJMclAWc3MfSwxAkED%2Flogo.png?alt=media\&token=1469c764-8d97-4f81-8a16-a74cfb156db8)

## 概述

View\.js 是一款运行在浏览器中的，Web 单页应用的开发框架。

与其它框架不同，View\.js 并不需要 Npm，开发者可以像开发传统的多页应用一样，继续使用熟悉的 Web 知识轻松开发单页应用。

View\.js 的创建初衷，是旨在通过预置的流程、方法和插件等，简化单页应用开发工作，使开发者能够以工程化的方式完成功能的开发、集成和规模化。

View\.js当前着重在如下几个方面为开发者提供帮助：

* 预置顺序固定的，可被开发者监听的页面切换事件
* 预置可配置的自适应布局动作
* 为页面切换提供复杂类型的数据传递支持，如：DOM元素 和 回调方法 等
* 为页面预置数据存取上下文，尽可能规避全局变量污染
* 为页面预置参数化配置支持，简化页面配置化表现的开发工作量
* 为页面预置格式化日志输出组件，辅助定位故障

## 下载 View\.js

本站只提供最新版本 View\.js 的下载链接，开发者可以到 [Github](https://github.com/RedTeapot/Viewjs/releases) 上检索并下载历史版本。

点击 [这里](http://view-js.com)，查看最新版的 View\.js。

## 使用 View\.js

因其并不依赖 Node.js 环境，所以开发者只需要引入 View\.js 的 js 和css文 件后，即可着手开发业务逻辑。


---

# 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://doc.view-js.com/undefined.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.
