Fix typos. PR635
This commit is contained in:
parent
247bffb75e
commit
2825e54576
@ -50,7 +50,7 @@ TypeScript类型推论也可能按照相反的方向进行。
|
||||
|
||||
```ts
|
||||
window.onmousedown = function(mouseEvent) {
|
||||
console.log(mouseEvent.buton); //<- Error
|
||||
console.log(mouseEvent.button); //<- Error
|
||||
};
|
||||
```
|
||||
|
||||
@ -63,7 +63,7 @@ window.onmousedown = function(mouseEvent) {
|
||||
|
||||
```ts
|
||||
window.onmousedown = function(mouseEvent: any) {
|
||||
console.log(mouseEvent.buton); //<- Now, no error is given
|
||||
console.log(mouseEvent.button); //<- Now, no error is given
|
||||
};
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user