在 Drupal 安装中放置 jQuery 和/或 jQuery 插件的正确位置是什么?

发布于 2024-09-11 14:17:54 字数 22 浏览 0 评论 0原文

我只是希望它位于标准位置。谢谢

I just want it to be at a standard place. Thank You

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

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

发布评论

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

评论(2

一袭水袖舞倾城 2024-09-18 14:17:54

jQuery 1.2.6 已包含在 Drupal 中,因此您无需自行添加。如果您需要更新版本的 jQuery,我推荐 jQuery Update

要维护 jQuery 插件,您确实可以将它们放在您喜欢的文件夹中(我会选择sites/all/libraries),或者您可以考虑 jQuery 插件 模块。

jQuery 1.2.6 is already included in Drupal, so you don't need to add that yourself. If you need a newer version of jQuery, I recommend jQuery Update.

To maintain jQuery plugins, you can indeed put them in a folder you like (I would choose sites/all/libraries) or you can consider the jQuery plugin module.

茶色山野 2024-09-18 14:17:54

没有一个地方可以放置它,但常见的地方是:

  • 在自定义模块的文件夹内。
  • sites/all/libraries
  • 在主题的 js 文件夹中

There's not a single place to put it, but common ones are:

  • Inside a folder in your custom module.
  • sites/all/libraries
  • In your theme's js folder
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文