perf(console): rendering

This commit is contained in:
redhoodsu
2019-11-03 21:05:43 +08:00
parent b906228807
commit 28c43ed109
4 changed files with 115 additions and 12 deletions

View File

@@ -2217,6 +2217,20 @@ query.stringify({foo: 'bar', eruda: 'true'}); // -> 'foo=bar&eruda=true'
query.parse('name=eruda&name=eustia'); // -> {name: ['eruda', 'eustia']}
```
## raf
Shortcut for requestAnimationFrame.
Use setTimeout if native requestAnimationFrame is not supported.
```javascript
const id = raf(function tick() {
// Animation stuff
raf(tick);
});
raf.cancel(id);
```
## repeat
Repeat string n-times.