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 : http://i.stack.imgur.com/3mbce.jpg ![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]: http://i.stack.imgur.com/3mbce.jpg [2]: http://i.stack.imgur.com/Ewgyu.jpg
Have you tried using Chrome's JavaScript CPU profiler?

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

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

评论 抢沙发

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

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

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏