update readme

This commit is contained in:
张磊 2018-10-15 11:53:32 +08:00
parent b93056caa1
commit 4a81fbd047
3 changed files with 20 additions and 2 deletions

View File

@ -31,7 +31,8 @@
- [Hello Omi](#hello-omi)
- [TodoApp](#todoapp)
- [Store](#store)
- [Lifecycle](#lifecycle)
- [生命周期](#生命周期)
- [浏览器兼容](#浏览器兼容)
- [Install](#install)
- [Links](#links)
- [License](#license)
@ -308,7 +309,7 @@ render(<todo-app></todo-app>, 'body', store)
* 如果页面简单组件很少,可以 updateAll 设置成 true并且组件和页面不需要声明 data也就不会按需更新
* globalData 里声明的 path只要修改了对应 path 的值就会刷新所有页面和组件globalData 可以用来列出所有页面或大部分公共的属性 Path
### Lifecycle
### 生命周期
| Lifecycle method | When it gets called |
|-------------------------------|--------------------------------------------------|
@ -318,6 +319,14 @@ render(<todo-app></todo-app>, 'body', store)
| `beforeUpdate` | before `render()` |
| `afterUpdate` | after `render()` |
### 浏览器兼容
Omi 4.0+ works in the latest two versions of all major browsers: Safari 10+, IE 11+, and the evergreen Chrome, Firefox, and Edge.
![Browsers Support](./assets/browsers-support.png)
[→ polyfills](https://github.com/webcomponents/webcomponentsjs)
## Install
Get javascript file from Github:

View File

@ -32,6 +32,7 @@ On the left is Omi, the right side is React, and Omi uses Shadow DOM isolation s
- [TodoApp](#todoapp)
- [Store](#store)
- [Lifecycle](#lifecycle)
- [Browsers Support](#browsers-support)
- [Install](#install)
- [Links](#links)
- [License](#license)
@ -320,6 +321,14 @@ Summary
| `beforeUpdate` | before `render()` |
| `afterUpdate` | after `render()` |
### Browsers Support
Omi 4.0+ works in the latest two versions of all major browsers: Safari 10+, IE 11+, and the evergreen Chrome, Firefox, and Edge.
![Browsers Support](./assets/browsers-support.png)
[→ polyfills](https://github.com/webcomponents/webcomponentsjs)
## Install
Get javascript file from Github:

BIN
assets/browsers-support.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB