js如何取得鼠标当前点击的是页面上哪个对象

2025-02-27 14:10:16
推荐回答(1个)
回答1:

获取鼠标点击的“目标对象”可以用event.target, IE下为event.srcElement