mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Dev: Dynamic info content support #51
This commit is contained in:
@@ -143,13 +143,14 @@ Clear infos.
|
||||
|
||||
Add info.
|
||||
|
||||
|Name |Type |Desc |
|
||||
|-------|------|------------|
|
||||
|name |string|Info name |
|
||||
|content|string|Info content|
|
||||
|Name |Type |Desc |
|
||||
|-------|---------------|------------|
|
||||
|name |string |Info name |
|
||||
|content|string function|Info content|
|
||||
|
||||
```javascript
|
||||
info.add('title', 'content');
|
||||
info.add('location', () => location.href);
|
||||
```
|
||||
|
||||
### remove
|
||||
|
||||
Reference in New Issue
Block a user