doc: create addEventListener with multiple event section

This commit is contained in:
Leon Xu committed 2021-08-31 15:48:10 -07:00
1 parent bb64c4f0b8
commit a850b75bad
1 file changed
+4 -1
+4 -1
View File
@@ -128,4 +128,7 @@ text"> <Go!>
要制作一个响应按钮(或其他UI控件):
1. 选择感兴趣的控件(如按钮)和事件(如鼠标点击)
2. 编写一个JavaScript函数在事件发生时运行
3. 将函数附加到控件上的事件
3. 将函数附加到控件上的事件
## 带有多个事件的addEventListener
![多个]('/images/Event-Listener-with-Multiple-Events.png')