是否可以从浏览器控制台访问 Spine JS 模型?

发布于 2025-01-06 19:30:22 字数 43 浏览 1 评论 0原文

是否可以从浏览器控制台访问 Spine JS 模型?如果是这样,怎么办?

Is it possible to access Spine JS models from the browser console? and if so, how?

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

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

发布评论

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

评论(2

青衫儰鉨ミ守葔 2025-01-13 19:30:22

此外,如果您的应用未绑定到窗口,您始终可以 require 您正在寻找的模型。 Spine 的 require 方法绑定到窗口。

如果您有一个用户模型 (app/models/user),那么您应该能够 User = require 'models/user'。然后你可以 User.first() 或其他

Also, if your app isn't bound to the window, you can always require the models you're looking for. Spine's require method is bound to the window.

If you have a User model (app/models/user), then you should be able to User = require 'models/user'. Then you can User.first() or whatever

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