Safari Browser (iPhone Simulator): How to see/monitor all events being triggered?

风格不统一 提交于 2019-12-10 15:18:47

问题


I'm using the iPhone Simulator in Safari OSX to debug my JavaScript. I'm using the Console, however, as there is a number of event handlers on the page (plus I'd like to see if the browser also fires any additional events, e.g. :hover on touch) it would very useful to see ANY/ALL events being fired in real-time. I found an article about how to do it in Firefox/FireBug.. anything like this for Safari/iPhone Simulator? Thanks!


回答1:


monitorEvents also works in Safari (iOS 11).

https://developers.google.com/web/updates/2015/05/quickly-monitor-events-from-the-console-panel



来源:https://stackoverflow.com/questions/20713106/safari-browser-iphone-simulator-how-to-see-monitor-all-events-being-triggered

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!