Dev: Dynamic info content support #51

This commit is contained in:
surunzi
2018-01-31 11:28:03 +08:00
parent f7d4a42fa6
commit c41b43a825
3 changed files with 26 additions and 7 deletions

View File

@@ -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