1
0
mirror of synced 2025-12-10 16:38:16 +08:00

Add api documentation

This commit is contained in:
redhoodsu
2018-06-19 18:39:45 +08:00
parent a2180fb445
commit 011c4d6da6
2 changed files with 103 additions and 2 deletions

View File

@@ -93,14 +93,15 @@ When initialization, a configuration object can be passed in.
under html root element.
* tool: Choose which default tools you want, by default all will be added.
For more information, please check the [documentation](doc/API.md).
```javascript
var el = document.createElement('div');
document.body.appendChild(el);
eruda.init({
container: el,
tool: ['console', 'elements'],
useShadowDom: true // Use shadow dom to prevent page css affecting eruda.
tool: ['console', 'elements']
});
```