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

Hexo Next 使用https 百度分享无法正常显示 #10

Open
yangfan21-zz opened this issue Nov 1, 2017 · 0 comments
Open

Hexo Next 使用https 百度分享无法正常显示 #10

yangfan21-zz opened this issue Nov 1, 2017 · 0 comments

Comments

@yangfan21-zz
Copy link

Hexo Next 使用后 显示 Uncaught SyntaxError: missing ) after argument list

具体操作如下:

  1. 下载该项目 将static文件夹放在Hexo 根目录下面的source文件夹下
  2. 修改 themes\next\layout_partials\share\baidushare.swing 中的内容 将script 中的src 改为
    '/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
  3. hexo clean all && hexo g
  4. 打开页面检查元素 可以看到console 中有这个错误
    Uncaught SyntaxError: missing ) after argument list

请问这个是什么情况? 如何解决?

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