Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon he committed Jul 29, 2022
1 parent ab3b500 commit f4c2af0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,11 @@ export default defineConfig({
- target?: null | HTMLElement /* Insertion position (inserted to first node by default) */
```js
const div = createElement('div', {
id: 'main',
id: 'test',
style: 'background: red;font-size:20px',
})
insertElement('#main', div) // Insert into the first node
insertElement('#main', 'test') // Insert into the first node
insertElement('#main', div, null) // Insert to the end
```

Expand Down Expand Up @@ -574,7 +575,8 @@ console.log(sort(array2, ['-age','name'])) // [{name: 'simon', age: 19}, {name:
- height: canvas Height
```javascript
const signature = new CreateSignatureCanvas(400, 400)
document.body.appendChild(signature.canvas)
signature.mount('#main') // Mount the canvas to the element with id 'main'
signature.unmount() // Unmount the canvas
const base64 = signature.save()
signature.clear() // Clear the signature
```
Expand Down

0 comments on commit f4c2af0

Please sign in to comment.