mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
feat(console): utilities api
This commit is contained in:
@@ -966,6 +966,21 @@ cookie.get('a'); // -> '1'
|
||||
cookie.remove('a');
|
||||
```
|
||||
|
||||
## copy
|
||||
|
||||
Copy text to clipboard using document.execCommand.
|
||||
|
||||
|Name|Type |Desc |
|
||||
|----|--------|-----------------|
|
||||
|text|string |Text to copy |
|
||||
|[cb]|function|Optional callback|
|
||||
|
||||
```javascript
|
||||
copy('text', function (err) {
|
||||
// Handle errors.
|
||||
});
|
||||
```
|
||||
|
||||
## createAssigner
|
||||
|
||||
Used to create extend, extendOwn and defaults.
|
||||
|
||||
Reference in New Issue
Block a user