memrootじしょ
英和翻訳
event bubbling
event bubbling
[ɪˈvɛnt ˈbʌblɪŋ]
イベント バブリング
1.
イベントが、子要素から親要素へと伝播していく現象。
ウェブ開発において、HTML要素上で発生したイベントが、その要素の子から親へと階層を遡って伝わっていく仕組みのことを指します。これにより、親要素でまとめてイベントを処理することが可能になります。
Event
bubbling
is
a
mechanism
in
the
DOM
where
events
originate
in
the
deepest
element
and
propagate
up
to
ancestor
elements.
(イベントバブリングとは、DOMにおいて、イベントが最も深い要素で発生し、祖先要素に上昇して伝播していくメカニズムのことです。)
Event bubbling
イベントバブリングとは、イベントが子要素から親要素へと伝播していく現象のことです。
is a mechanism
メカニズム、仕組み
in the DOM
DOM (Document Object Model) において
where events
イベントが
originate
発生する
in the deepest element
最も深い要素で
and propagate up
上昇して伝播していく
to ancestor elements.
祖先要素に。
Understanding
event
bubbling
is
crucial
for
handling
user
interactions
effectively.
(ユーザーインタラクションを効果的に処理するためには、イベントバブリングを理解することが重要です。)
Understanding
理解すること
event bubbling
イベントバブリングを
is crucial
は重要です
for handling
処理するために
user interactions
ユーザーインタラクションを
effectively.
効果的に。
When
you
click
a
button
inside
a
div,
the
click
event
first
fires
on
the
button
and
then
bubbles
up
to
the
div.
(div の中のボタンをクリックすると、クリックイベントはまずボタンで発生し、その後 div にバブルアップします。)
When you click
クリックしたとき
a button inside a div,
div の中のボタンを
the click event
クリックイベントは
first fires
最初に発生します
on the button
ボタンで
and then bubbles up
そしてバブルアップします
to the div.
div に。
関連
event delegation
DOM event
event propagation