gpt4 book ai didi

javascript - 从网站访问动态数据

转载 作者:行者123 更新时间:2023-11-28 08:59:37 24 4
gpt4 key购买 nike

我正在开发一个从外部 URL 获取数据的应用程序。我用 Swift 创建这个并且已经达到了症结所在。我是一名新程序员..希望你们能帮助引导我朝着正确的方向前进。

查看网站的 HTML,我需要的数据正在响应表中使用 JavaScript 显示。任何帮助或建议将不胜感激。

另外,我在页面资源的 jQuery 脚本中找到了这些注释。不知道是什么意思。

无法执行此操作,因为包括 ASP.NET 跟踪在内的多个应用程序 通过 arguments.caller.callee 和 Firefox 的堆栈如果 您尝试通过“使用严格”调用链进行跟踪。

最佳答案

Looking at the HTML for the website, the data I need is being displayed with javascript in a responsive table. Any help or suggestions would be greatly appreciated.

  • 通过浏览器开发者工具查看外部URL产生的AJAX请求
  • 找到用于返回表中使用的 JSON 数据的那个
  • 在 Swift 代码中调用 JSON URL 而不是 HTML URL

Don't know what it means.

Can't do this because several apps including ASP.NET trace the stack via arguments.caller.callee and Firefox dies if you try to trace through "use strict" call chains

对于严格模式,使用 error.stack 作为 arguments.caller.callee 的替代方法来生成堆栈跟踪。例如:

function foo() { 
"use strict";
try
{
console.log(arguments.caller.callee);
}
catch(e)
{
console.log(e.stack);
}
}

foo();

引用资料

关于javascript - 从网站访问动态数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32250795/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com