Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3f312e8

Browse files
committedFeb 28, 2019
modify
1 parent 0dd75af commit 3f312e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎content/docs/handling-events.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,5 @@ class LoggingButton extends React.Component {
151151

152152
上述两种方式是等价的,分别通过[箭头函数](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions)[`Function.prototype.bind`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/Function/bind) 来实现。
153153

154-
在这两种情况下,参数 `e` 会作为 React 的事件对象被作为第二个参数传递。通过箭头函数的方式,事件对象必须显式的进行传递,但是通过 `bind` 的方式,事件对象以及更多的参数将会被隐式的进行传递。
154+
在这两种情况下,React 的事件对象 `e` 会被作为第二个参数传递。如果通过箭头函数的方式,事件对象必须显式的进行传递,而通过 `bind` 的方式,事件对象以及更多的参数将会被隐式的进行传递。
155+

0 commit comments

Comments
 (0)
Please sign in to comment.