任文吉

Results 6 comments of 任文吉

我这边,搞了半天。终于解决了计数为0问题。具体步骤如下: 1. 修改_config.yml中的url的值为你自己的博客绑定的域名。这里我的未绑定任何域名,修改为形如这样的形式:https://xxx.github.io/ ![目录结构1](https://wrapper-1258672812.cos.ap-chengdu.myqcloud.com/19-10-10/1.png) **注:上述中的xxx为你的github的账号,比如我的账号是wenwen1995** 2. ![目录结构2](https://wrapper-1258672812.cos.ap-chengdu.myqcloud.com/19-10-10/2.png) **注:** (1)图片中所示的root,permalink,permalink_defaults对应的值,默认是不需要有任何改动。 (2)上述图片的设置,对应的是你最终博客文章的链接指向。比如我的是https://wenwen1995.github.io/2019/09/20/single-spa-understand/ 。 而在你的github.io上,也要有对应的目录结构和内容存在,如下图所示 ![目录结构3](https://wrapper-1258672812.cos.ap-chengdu.myqcloud.com/19-10-10/3.png) 3.进入 _你本地博客目录下/themes/bubuzou/layout/mixins_,修改里面post.jade的这部分代码如下: ![代码修改](https://wrapper-1258672812.cos.ap-chengdu.myqcloud.com/19-10-10/4.png) 4.引入计数的js插件文件 进入 _你本地博客目录下/themes/bubuzou/layout/partial_ ,scripts.jade中添加这部分代码 ```diff script(async src="//cdn.bootcss.com/mathjax/2.6.1/MathJax.js?config=TeX-MML-AM_CHTML") script(src=url_for("scripts/jquery-1.8.2.min.js")) script(src=url_for("scripts/ar-anchor.js")) script(src=url_for("scripts/main.js")) + script(src=url_for("scripts/av-mini-0.6.10.js")) + script(src=url_for("scripts/hit-kounter-lc-0.2.0.js"))...

oh, thanks a lot.But when I tried the top code in my file, when I pressed ctrl+o, ctrl+alt+enter, or o, enter, nothing happened...But when I deleted 'A' and ‘B’ scope,it...

emmm,I 'm sorry to say, I adjust the code order,but when i press key, nothing happens... The code is like this: ```javascript import hotkeys from 'hotkeys-js'; ... hotkeys.setScope('B'); hotkeys('ctrl+o, ctrl+alt+enter',...

@jaywcjlove ,oh!I tried your example, it works fine.So I think why ...And finally the reason is in my project, react version is 15.x.x,but I npm install the latest hotkeys.js, it...

Just in mounted function , use this code, set it to be hidden: ```js mounted() { // hide fullScreen const fullScreenEl = document.querySelector('.fullscreen'); fullScreenEl.style.display = 'none'; } ```