老师,可以麻烦您解释一下下面注释的那行代码用意是什么吗
while (target) {
syntheticEvent.currentTarget = target // 这行代码的用意是什么
let eventName = `on${nativeEvent.type}`;
let bindFunction = target.attach && target.attach[eventName];
bindFunction && bindFunction(syntheticEvent);
if (syntheticEvent.isPropagationStopped) {
break;
}
target = target.parentNode;
}