Chrome and JS onclick function?

I wanted to test chrome to see if it can show me what method will be running for `onclick` registered event. So I wanted to see which JS function execute shen people upvotes a question : ![enter image description here][1] But I couldn't found the actual code. is it possible with chrome to find which JS executes when "onclick"? #edit I could use the console to do it with : $.each($(".vote-up-off").data("events"), function(i, e) { // this will work till jq 1.8 console.log(this) }); and here is our friend: ![enter image description here][2] But **hey** ! , I want chrome to do the work :-) [1]: [2]:
Have you tried using Chrome's JavaScript CPU profiler?

以上就是Chrome and JS onclick function?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准