Access the clicked element

前端 未结 2 890
别那么骄傲
别那么骄傲 2020-12-21 20:53

I have an element like this:

hi

function go() { }

how do I get access to the element that g

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-21 21:45

    You could pass this as an argument:

    hi

    function go(clicked) { }

提交回复
热议问题