【问题标题】:jquery function not working on github pagesjquery 函数不适用于 github 页面
【发布时间】:2022-12-12 20:00:27
【问题描述】:
I have hosted my project on GitHub Pages but jQuery function it is not working correctly as elements like the navbar, carousel, slide-up, etc are not working.
   The HTML page is working smoothly on my device Vscode and other online tools like Pen tools.

my page link
https://surajgond07.github.io/personal-portfolio/

my githubcode link
https://github.com/surajgond07/personal-portfolio

我尝试了所有可能的方法,但脚本无法正常运行。 我的代码是正确的,但 html 没有与脚本链接。

【问题讨论】:

标签: javascript html jquery


【解决方案1】:

发现你的错别字。在你的html底部,它应该是JS而不是js

除此之外,您的 github.io 页面上没有 JS 文件夹,而它位于您的 github 存储库中。你能检查一下吗(例如尝试重新部署你的网站)?

【讨论】:

  • 请不要回答解决方案是“修复错字”的问题。这种类型的问题没有长期价值,因为遇到同样问题的其他人不会通过搜索找到它。 “打字错误”是标准的关闭投票原因之一。回答此类问题可以阻止 OP 删除它以消除 StackOverflow 的膨胀。您可以删除此答案以消除阻止此类清理的可能性。
  • 至少我帮助了一个人
【解决方案2】:

是的!它的打字错误 谢谢

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-06-19
    • 1970-01-01
    • 2022-10-21
    • 1970-01-01
    • 2017-09-12
    • 2016-11-24
    • 2022-12-30
    • 2013-07-08
    相关资源
    最近更新 更多