解决多台电脑使用hexo的问题

在使用hexo的过程中,我开始是在上家公司写的东西全部提交到了hexo,以为就好了,结果换新公司从新电脑拉下来后不知道怎么搞了,原先的那些东西都没了,为了解决这个,我在度娘上找到了方案,写在这里,做下记录

阅读更多

前端生成二维码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script src="//a.alipayobjects.com/arale-qrcode/3.0.5/index.js"></script>
<body>
<div id="qrPlace" />
</body>
<script>
let el = document.getElementById("qrPlace");
el.appendChild(
new AraleQRCode({
render: "canvas",
size: 150,
correctLevel: 1,
text: "后台没给code"
})
);
// "copy-to-clipboard": "^3.0.8",前端复制插件
</script>

阅读更多

防止页面后退

利用这串代码来禁止用户点击后退,适用于移动端和PC

1
2
3
4
5
//防止页面后退
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});

阅读更多

blob 对象 对于二进制流生成本地地址的使用

    阅读更多

    vue+axios 上传七牛云图片

    vue+axios 上传七牛云图片

    阅读更多

    搭建shadowsocks

    先拉取当前镜像,然后直接复制第一条命令

    阅读更多

    nginx代理端口,配置https域名

    nginx配置

    阅读更多

    webpack-todo二

    webpack构建可通用的配置文件

    阅读更多

    Hello World

    Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

    阅读更多

    webpack加快热更新

    在项目开始的时候,文件还不会很多,我们都没关心热更新的问题,到了大的时候就编译热更新坐在那里等个好久,我说的好久可能大家的都不一样,
    哈哈哈;接下来,介绍一些小技巧,往后发现就会继续追更,emmm,嘻嘻

    阅读更多