mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Add info get api #83
This commit is contained in:
@@ -159,6 +159,21 @@ info.add('title', 'content');
|
||||
info.add('location', () => location.href);
|
||||
```
|
||||
|
||||
### get
|
||||
|
||||
Get info or infos.
|
||||
|
||||
|Name |Type |Desc |
|
||||
|------|---------------|------------|
|
||||
|name |string |Info name |
|
||||
|return|string function|Info content|
|
||||
|
||||
```javascript
|
||||
info.add('title', 'content')
|
||||
info.get(); // -> [{name: 'title', val: 'content'}]
|
||||
info.get('title') // -> 'content'
|
||||
```
|
||||
|
||||
### remove
|
||||
|
||||
Remove specified info.
|
||||
|
||||
1122
doc/UTIL_API.md
1122
doc/UTIL_API.md
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user