Spine JS::RangeError:超出最大调用堆栈大小

发布于 2025-01-05 16:29:39 字数 457 浏览 1 评论 0原文

问题

我正在导航到正在激活我的控制器的链接。 在我的控制器中执行以下行时超出了最大调用堆栈:@log(Model.all())

Model.all() 有 0 条记录 控制器是 4 个类中的 28 个函数,超过 200 行

问题

  • 什么是 Spine/JS 术语中的调用堆栈:它是一个函数吗?一个班?一个模块?
  • 调用堆栈限制是由浏览器、JS、JQuery 或 Spine 施加的吗? 可能的浏览器限制
  • 这是一个常见问题吗?如果是,我该如何避免它使用 Spine JS 时?

Problem

I am navigating to a link which is activating my controller.
The maximum call stack is exceeded when executing the line: @log(Model.all()) within my controller.

Model.all() has 0 records
The controller is 28 functions in 4 classes, over 200 lines

Questions

  • What is a call stack in Spine/JS terms: is it a function? a class? a module?
  • Are the call stack limits imposed by the Browser,JS, JQuery or Spine? possible browser limits
  • Is this a common problem, and if so how can I avoid it while using Spine JS?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蝶舞 2025-01-12 16:29:39

如果删除该行应用程序会继续运行吗?

否则,我认为对于那些小类/函数,您的代码更有可能出现问题。我认为某些函数不断调用自身,导致堆栈大小变得太大。

If you remove that line the app keeps working?

Otherwise I think with that little classes / functions it's more likely to be an issue with your code. I think some function keeps calling itself which causes the stacksize to become too big.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文