演示:事件是具有特定任务并且必须接收信号才能运行的代码块。

我们使用事件处理程序来告诉程序要监听什么信号以及运行什么事件

  • 点击运行以查看事件的各个部分。
  • 按照舞台上的指示查看每条线路的作用。
  • 点击提交接下来回答有关函数的问题。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)