Fix typos. PR635

This commit is contained in:
zhongsp 2017-08-17 09:12:58 +08:00
parent 247bffb75e
commit 2825e54576

View File

@ -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
};
```