Palm Mojo:对象属性

发布于 2024-09-02 05:31:41 字数 110 浏览 2 评论 0原文

还有另一个问题的答案说您可以使用 event.down.x 来获取点击事件的 x 坐标。它还表示 Palm Mojo SDK 中没有对此进行详细记录。我的问题是如何找到可用于任何给定 Mojo 对象的属性?

There was another question with an answer saying that you can use event.down.x to get the x-coordinate of a tap event. It also said that this was not well documented in the Palm Mojo SDK. My question is how can I find the properties that I can use for any given Mojo object?

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

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

发布评论

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

评论(2

狼性发作 2024-09-09 05:31:41

最简单的方法是使用 object.toJSON(yourObjectHere) 为对象创建 JSON。然后您可以将其打印到日志文件、屏幕或您想要的任何位置。

也许有更好的方法,例如 for (var i in yourObjectHere) ,但这是我更喜欢的快速而肮脏的方法。

The easiest way is to create the JSON for the object with object.toJSON(yourObjectHere). Then you can print it to the log file, screen or where ever you want it.

Maybe there are better ways like for (var i in yourObjectHere), but this is my preferred quick and dirty way.

最偏执的依靠 2024-09-09 05:31:41

我最终找到了 Mojo 调试器,它允许您通过命令行打印对象的属性。

I ended up finding the Mojo debugger and it allows you to print the properties of objects via the command line.

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