Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pjax无刷新报错 #7

Open
muyan0709 opened this issue Oct 24, 2024 · 1 comment
Open

Pjax无刷新报错 #7

muyan0709 opened this issue Oct 24, 2024 · 1 comment

Comments

@muyan0709
Copy link

使用最新master分支文件出现控制台报错,切换其他服务器重新安装typecho还是报错
image
切换页面可以正常无刷新切换,但是控制台出现报错,报错指向footer.php 45行
image
将这段<script>标签注释掉后没有再出现报错,但是pjax失效不能正常无刷新切换
image

@muyan0709
Copy link
Author

抱歉我不太懂JavaScript,在Copilot帮助下只注释掉$(document).on('pjax:complete', function()里的代码后没有报错了。
Copilot分析出注释掉的代码是监听pjax完成事件,里面包裹着是音乐播放器代码,但我在后台设置没有看到有关音乐播放器的代码,为什么要设置这段代码呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant