mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Update getting-started.md
This commit is contained in:
parent
81ce7ed71b
commit
5d13ad3c7a
@ -18,7 +18,10 @@ You can install `html2canvas` through npm or [download a built release](https://
|
|||||||
```javascript
|
```javascript
|
||||||
import html2canvas from 'html2canvas';
|
import html2canvas from 'html2canvas';
|
||||||
```
|
```
|
||||||
|
##cdn
|
||||||
|
```html
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.js" integrity="sha512-sn/GHTj+FCxK5wam7k9w4gPPm6zss4Zwl/X9wgrvGMFbnedR8lTUSLdsolDRBRzsX6N+YgG6OWyvn9qaFVXH9w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||||
|
```
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To render an `element` with html2canvas with some (optional) [options](/configuration/), simply call `html2canvas(element, options);`
|
To render an `element` with html2canvas with some (optional) [options](/configuration/), simply call `html2canvas(element, options);`
|
||||||
|
Loading…
Reference in New Issue
Block a user