witex
v1.3.5
Published
WiTex
Downloads
18
Readme
WiTex
使用
npm install witex
API
- 给定一个dom节点的ID,render结果将直接覆盖原dom内容
WiTex.render(id);
- 给定一段文本,在callback中获取render之后的html片段
WiTex.render(text, callback);
Run Simple Example
- 开启本地服务
php -S 0.0.0.0:8000
Run Webpack Example
- 安装依赖
npm install
- 开启服务
npm run webpack-example-dev
- 本地访问
http://127.0.0.1:3000