mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
perf(console): rendering
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user