如何在palm mojo中使用jquery?

发布于 2024-08-15 08:28:04 字数 42 浏览 1 评论 0原文

我该如何才能在我的 palm mojo 应用程序中使用 jquery?

How do I do to be able to use jquery in my palm mojo application?

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

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

发布评论

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

评论(2

檐上三寸雪 2024-08-22 08:28:04

查看这个问题,尤其是评论。

编辑回应评论:

我不了解Palm开发,所以我无法详细帮助你。然而,Mojo 是基于 Prototype 的。 Prototype 和 JQuery 崩溃是因为它们具有相同的函数名称。这就是 noConflict 插件的用武之地。您可以阅读它 此处并在此处获取它。这就是我能告诉你的全部内容——也许其他人可以引导你一步步完成这个过程。

Check out this question, especially the comments.

Edit in response to the comments:

I don't know about Palm development so I can't help you out in detail. Mojo however is based on Prototype. Prototype and JQuery crash because they have identical function names. That's where the noConflict plugin comes in. You can read up on it here and get it here. That's about all I can tell you about it - maybe somebody else can take you through the process step by step.

携君以终年 2024-08-22 08:28:04
  1. 导入 Mojo
  2. 导入 jQuery
  3. 创建一个包含 jQuery.noConflict(); 的脚本块
  4. 遵循正常的 jQuery 除了使用“jQuery”而不是“$”

例如,jQuery('div#idOfSomething').hide();

  1. Import Mojo
  2. Import jQuery
  3. Create a Script block that contains jQuery.noConflict();
  4. Follow with your normal jQuery except using 'jQuery' instead of '$'

E.g., jQuery('div#idOfSomething').hide();

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