Commit 3f0bcc1
authored
Update canvas.md
修复变量未定义问题
```
var text1 = ctx.measureText('Hello world');
text.width // 49.46
ctx.font = 'Bold 20px Arial';
text2.width // 107.78
```1 parent a538e97 commit 3f0bcc1
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
| |||
0 commit comments