Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 3336dab

Browse files
committed
docs(events): fix typo
1 parent 1fb851b commit 3336dab

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/events/keyboard.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ document.body.addEventListener('keydown', showChar, false);
6666

6767
`KeyboardEvent.code`属性返回一个字符串,表示当前按下的键的字符串形式。该属性只读。
6868

69-
下面是一些常用键的字符串形式,其他键请查[文档](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code#Code_values)
69+
下面是一些常用键的字符串形式,其他键请查[文档](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values)
7070

71-
- 数字键0 - 9:返回`digital0` - `digital9`
71+
- 数字键0 - 9:返回`digit0` - `digit9`
7272
- 字母键A - z:返回`KeyA` - `KeyZ`
7373
- 功能键F1 - F12:返回 `F1` - `F12`
7474
- 方向键:返回`ArrowDown``ArrowUp``ArrowLeft``ArrowRight`

docs/events/mouse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ document.body.addEventListener(
313313
```javascript
314314
/*
315315
HTML 代码如下
316-
<div id="outer" style="height:50px;width:50px;border-width:1px solid black;">
316+
<div id="outer" style="height:50px;width:50px;border:1px solid black;">
317317
<div id="inner" style="height:25px;width:25px;border:1px solid black;"></div>
318318
</div>
319319
*/

0 commit comments

Comments
 (0)