Skip to content

Commit

Permalink
docs: rewrite chinese documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Oct 28, 2021
1 parent 20ca4bc commit 28229cf
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 73 deletions.
28 changes: 14 additions & 14 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
# <a href="https://million.js.org"><img src="https://raw.githubusercontent.com/aidenybai/million/main/.github/assets/logo.svg" height="69" alt="Million Logo" aria-label="Million Logo" /></a>

简体中文 | [English](https://github.com/aidenybai/million/blob/main/README.md)
中文 | [English](https://github.com/aidenybai/million/blob/main/README.md)

### <1kb 专注虚拟 DOM 的编译器。非常快
### <1kb 专注于编译器的虚拟 DOM - 速度非常快

当前虚拟 DOM 的实现是不充分的——从过于复杂到被抛弃,如果考虑到不牺牲原始的性能和大小,那么它们大多数都是不可用的。Million 的目标是解决这个问题,提供一个与库无关的 Virtual DOM 作为 Javascript 库的核心,专注于预编译和静态分析。
当前虚拟 DOM 的实施功效并没有充分发挥出来。有些过于复杂而限制其有效地实施;有些则半途而废。如果不牺牲其初始性能和规模,其中大多数实际上是不可用的。大多要以牺牲性能和大小为代价进行调整,才变得可用。Million 就是针对这个问题的一套解决方案。它提供了一个与库无关的虚拟 DOM 作为 Javascript 库的核心,专注于预编译和静态分析。

[![CI](https://img.shields.io/github/workflow/status/aidenybai/million/CI?color=FF524C&labelColor=000&style=flat-square&label=build)](https://img.shields.io/github/workflow/status/aidenybai/million)
![Code Size](https://badgen.net/badgesize/brotli/https/unpkg.com/million/dist/code-size-measurement.js?style=flat-square&label=size&color=FF524C&labelColor=000) [![NPM Version](https://img.shields.io/npm/v/million?style=flat-square&color=FF524C&labelColor=000)](https://www.npmjs.com/package/million) ![Code Coverage](https://img.shields.io/coveralls/github/aidenybai/million?color=FF524C&labelColor=000&style=flat-square)

[**→ 查看 Million 文档**](https://million.js.org)

## 为什么是 Million?
## 为什么选择 Million?

- 🦁 为可编译的库构建
- 📦 轻量级的包大小 (<1kb brotli+min)
-快速运行时操作
- 🛠️ 可扩展使用驱动程序,默认情况下是合理的
- 🦁 构建可编译的库
- 📦 轻量级的模块 (<1kb brotli+min)
-快捷的运行操作
- 🛠️ 可以使用驱动程序进行组合,默认情况下就可实现

## 下载 Million

Million 在默认情况下不需要 [构建工具](https://million.js.org/essentials/installation), 但是非常推荐你使用 npm 进行安装
Million 在默认情况下不需要 [构建工具](https://million.js.org/essentials/installation), 但是非常推荐你使用 npm 进行安装

```sh
npm install million
```

## Hello World 示例

下面是一个使用 Million 实现的非常简单的 Hello World 页面。
下面是一个使用 Million 实现的极简 Hello World 页面。

```js
import { m, createElement, patch } from 'million';
Expand All @@ -46,7 +46,7 @@ patch(app, m('div', { id: 'app' }, ['Goodbye World']));

<a href="https://vercel.com/?utm_source=millionjs&utm_campaign=oss" target="_blank"><img height="44" src="https://raw.githubusercontent.com/aidenybai/million/main/.github/assets/vercel-logo.svg" alt="Vercel"></a>

**想看到你的 logo 吗? [→ Million 赞助者](https://github.com/sponsors/aidenybai)**
**想在这里看到你的 logo 吗? [→ Million 赞助者](https://github.com/sponsors/aidenybai)**

## 资源 & 反馈

Expand All @@ -64,11 +64,11 @@ patch(app, m('div', { id: 'app' }, ['Goodbye World']));

Million 从 [Snabbdom](https://github.com/snabbdom/snabbdom)[Fre](https://github.com/yisar/fre) 身上获取了很多灵感,并相信 [React](https://github.com/facebook/react)[Inferno](https://github.com/infernojs/inferno) 以及 [Moon](https://github.com/kbrsh/moon) 背后的核心理念和价值。如果你有兴趣使用其他库,可以随时查看它们。

_为什么叫 "Million"?这个名字源于能够处理 [1M+ ops/sec 基准测试](https://github.com/aidenybai/million/tree/main/benchmarks#readme) 的目标_.
_为什么叫 "Million"?这个名字源于能够处理的目标 [1M+ ops/sec 基准测试](https://github.com/aidenybai/million/tree/main/benchmarks#readme)_.

## License
## 许可证

Million 是属于 [Aiden Bai](https://github.com/aidenybai) ,并且获得了 [MIT-licensed](LICENSE) 认可的开源软件。
Million 是属于 [Aiden Bai](https://github.com/aidenybai),并且获得了 [MIT-licensed](LICENSE) 认可的开源软件。

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Faidenybai%2Fmillion.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Faidenybai%2Fmillion?ref=badge_large)

Expand Down
118 changes: 59 additions & 59 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 28229cf

Please sign in to comment.