Add “this” to click event function that also takes other arguments

后端 未结 0 1870
醉酒成梦
醉酒成梦 2021-01-24 10:11

I can always make this work (simple printing of the clicked object):

$("someobject").click(function() {console.log(this)});

and I can a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题