![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
博客搭建
<WRM>
这个作者很懒,什么都没留下…
展开
-
hexo+next添加雪花飘落背景效果
该文章以hexo+next为例,介绍添加雪花飘落背景效果步骤(hexo下的其它的主题大同小异) 效果请查看我的个人博客 在\blog\themes\next\source\js目录下新建snow2.js文件,添加如下代码 /*样式一*/ (function ($) { $.fn.snow = function (options) { var $flake = $('<div id="snowbox" />').css({ 'positi原创 2020-09-25 16:14:09 · 1464 阅读 · 0 评论 -
添加网站运行时间-报错Uncaught TypeError: Cannot set property ‘innerHTML‘ of null at createtime ((index):69
我的博客是用的hexo的next主题,但是老是报如下的错误: 对应的代码: document.getElementById("timeDate").innerHTML = "本站已安全运行 "+dnum+" 天 "; document.getElementById("times").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒"; 报错信息:找不到元素,无法进行innerHTML操作 错误原因可能有两个: js引用了当前js下面的标签元原创 2020-07-31 12:45:25 · 261 阅读 · 0 评论