clearText 函数中的 'e' 参数是什么意思?

What is meant by 'e' argument in the clearText function?

我正在尝试执行以下代码以从 canvas 中删除文本。虽然它工作得很好。但我的问题是当我点击文本时它会实现。我希望它应该在我按下删除键或删除 html 按钮时实现。这就是为什么我试图了解 clearText 函数中的 'e' 是什么。以下是目前我正在考虑从 canvas.

中删除我的文本的参考代码
function clearText(e) {
if (e.target.type === "i-text") {
if (e.target.text === textarea) {
e.target.text = "";
canvas.renderAll();
};
}
}

"e" 指的是事件对象,用于处理与事件相关的功能。下面 link 将为您提供更多相关信息。 "Target" 是该事件对象的 属性。

https://www.w3schools.com/jsref/dom_obj_event.asp