Update README.md

This commit is contained in:
dntzhang 2017-02-10 16:00:41 +08:00 committed by GitHub
parent e078ead052
commit 43a6e4a06c
1 changed files with 3 additions and 1 deletions

View File

@ -60,6 +60,8 @@ Omi.render(new Hello({ name : "Omi" }),"body");
[[点击这里->在线试试]](http://alloyteam.github.io/omi/website/redirect.html?type=hello)
如果使用omi.lite.js版本(不包含mustachejs模板引擎)的话,也可以[使用 ${this.data.name} 的方式](http://alloyteam.github.io/omi/website/redirect.html?type=without_tpl)。
你可以使用Omi.makeHTML来生成组件标签用于嵌套。
```js
Omi.makeHTML('Hello', Hello);
@ -157,4 +159,4 @@ You can use [webpack](https://webpack.github.io/) + [babel](http://babeljs.io/)
Omi did not abandon the ES5 users, you can also use ES5 to write Omi.[[Try Omi-ES5 on Playground]](http://alloyteam.github.io/omi/website/redirect.html?type=hello_es5)
# License
This content is released under the [MIT](http://opensource.org/licenses/MIT) License.
This content is released under the [MIT](http://opensource.org/licenses/MIT) License.