我想知道是否有一种简单的方法来识别使用 Ajax 请求的网站。
我浏览了以下文章,
http://www.zansule.com/2010/08/how-to-tell-if-a-site-is-using-ajax/
文章摘录:
"With the XHR console opened, run the suspected Ajax based operation and monitor the console for any requests being sent which indicates the operation to be Ajax driven. Note that the XHR console only shows Xml Http Requests"
这是否意味着 XHR 控制台中显示的任何请求都表明该网站有 AJAX 请求?
例如,我访问 amazon.com,搜索 Apple iPhone 5S 并单击评论,它确实在 XHR 控制台中显示了请求。我的理解是否正确,请指教。
最佳答案
是的,如果您打开开发人员工具,单击“网络”选项卡,然后选择“XHR”过滤器,则开发人员工具将仅向您显示站点执行的 XHR(XML HTTP 请求)请求。这些是正在进行的 AJAX 调用。
关于javascript - 识别网站是否有 AJAX 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32789924/