gpt4 book ai didi

javascript - Drupal 7 将 jQuery 文件添加到所有页面

转载 作者:行者123 更新时间:2023-12-02 17:59:35 26 4
gpt4 key购买 nike

我在这里查看了drupal的主页:https://drupal.org/node/171213 ,但仍然收到错误。

在我的 .info 文件中,我添加了代码:

stylesheets[all][] = template.css
scripts[] = megamenu.js

我知道样式表是不需要的。我只是将其放在那里以供引用它在我的代码中的外观。

我检查了我的 Google Chrome Web-Dev 设置,它甚至没有加载 .js 页面,这让我相信我在 .info 文件中做错了什么。有人知道我哪里出错了吗?

谢谢!

最佳答案

根据我上面的评论,清除主题缓存可以解决该问题。

关于javascript - Drupal 7 将 jQuery 文件添加到所有页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20668674/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com