Skip to content

Commit

Permalink
add vConsole.destroy()
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed Sep 22, 2017
1 parent 04b91b4 commit b2de158
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
20 changes: 19 additions & 1 deletion doc/public_properties_methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ vConsole.setOption({maxLogNumber: 5000});
```



### vConsole.activedTab

The actived tab's plugin id.
Expand Down Expand Up @@ -105,6 +104,25 @@ vConsole.setOption({maxLogNumber: 5000});
```


### vConsole.destroy()

Destroy an vConsole instance object and remove vConsole panel from document.

##### Parameters:
- None

##### Return:
- None

##### Example:

```javascript
var vConsole = new VConsole();
// ... do something
vConsole.destroy();
```


### vConsole.addPlugin(plugin)

Add a new plugin to vConsole. Duplicate plugin will be ignored.
Expand Down
19 changes: 19 additions & 0 deletions doc/public_properties_methods_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,25 @@ vConsole.setOption({maxLogNumber: 5000});
```


### vConsole.destroy()

析构一个 vConsole 对象实例,并将 vConsole 面板从页面中移除。

##### 参数:
-

##### 返回:
-

##### 例子:

```javascript
var vConsole = new VConsole();
// ... do something
vConsole.destroy();
```


### vConsole.addPlugin(plugin)

添加一个新插件。重名的插件会被忽略。
Expand Down

0 comments on commit b2de158

Please sign in to comment.