Skip to content

Commit f4c2af0

Browse files
author
Simon he
committed
chore: update
1 parent ab3b500 commit f4c2af0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README_en.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,11 @@ export default defineConfig({
143143
- target?: null | HTMLElement /* Insertion position (inserted to first node by default) */
144144
```js
145145
const div = createElement('div', {
146-
id: 'main',
146+
id: 'test',
147147
style: 'background: red;font-size:20px',
148148
})
149149
insertElement('#main', div) // Insert into the first node
150+
insertElement('#main', 'test') // Insert into the first node
150151
insertElement('#main', div, null) // Insert to the end
151152
```
152153

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

0 commit comments

Comments
 (0)