# shaco **Repository Path**: webfrontup/shaco ## Basic Information - **Project Name**: shaco - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-08-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # shaco > a mini js which help you solve some questions about views-rendering, especially jQuery! 一个可以帮你解决一些关于视图渲染的问题的轻量js,特别是对于jQuery! > When you update data, shaco will automatically render view!It spends less time than jQuery `html()`! 当你更新数据的时候,shaco将会自动刷新视图,它比`jQuery`的`html()`花费更少的时间! ## Show ![](./screenshot/2.gif) ## Live Demos [中文](https://blog.shanamaid.top/shaco/index.html) [English](https://blog.shanamaid.top/shaco/index-en.html) ## Usage ```
Shaco
{{time}} {{username}}
{{content}}
``` > when you want to update data, you can do this, then views will be updated automatically! 当你想要刷新数据的时候,你可以按照下面这样做,然后视图将会自动刷新。 ``` shaco.$data.username = 'Tom' ``` > If you want get more message, please open `index-en.html`! 如果你想要了解更多,请阅读`index.html`文件中的代码! ## How to run? ![](./screenshot/1.png) ## Performance > As shown, jQuery spend much in rendering and painting, but shaco not! 如下图所示,`jQuery`花费了大量的时间在`rendering`和`painting`上,但是shaco却没有! ![](./screenshot/4.png)