<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[fearlessxmm的博客]]></title><description><![CDATA[学习记录，每天进步一点点]]></description><link>https://blog.youkuaiyun.com/fearlessxmm</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; fearlessxmm]]></copyright><item><title><![CDATA[linux指令]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/98593847</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/98593847</guid><author>fearlessxmm</author><pubDate>Tue, 06 Aug 2019 11:08:14 +0800</pubDate><description><![CDATA[1. linux初级指令
1.1系统管理相关命令

登录基本信息
当前登录用户名:
#管理员用户指示符
$普通用户提示符
hostname:查看主机名
who:查询登录到系统的用户
whoami:确定自己的身份
history:查看当前用户运行命令的历史
ifconfig:显示或设置网络设备的指令 ，我们可以用这个命令查看自己服务器的ip地址
ping：ping是Windows，Unix和linu...]]></description><category></category></item><item><title><![CDATA[[转]：git报错：Pull is not possible because you have unmerged files解决]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/90903025</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/90903025</guid><author>fearlessxmm</author><pubDate>Wed, 05 Jun 2019 15:23:39 +0800</pubDate><description><![CDATA[git报错：Pull is not possible because you have unmerged files解决


本地的push和merge会形成MERGE-HEAD(FETCH-HEAD), HEAD（PUSH-HEAD）这样的引用。HEAD代表本地最近成功push后形成的引用。MERGE-HEAD表示成功pull后形成的引用。可以通过MERGE-HEAD或者HEAD来实现类型与sv...]]></description><category></category></item><item><title><![CDATA[git 解决：The authenticity of host '[ssh.github.com]:443 ([192.30.253.123]:443)' can't be established.]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/90401690</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/90401690</guid><author>fearlessxmm</author><pubDate>Tue, 21 May 2019 10:21:54 +0800</pubDate><description><![CDATA[git 解决：The authenticity of host ‘[ssh.github.com]:443 ([192.30.253.123]:443)’ can’t be established.
换了一部电脑，git clone的时候，报了这样的错误：
The authenticity of host '[ssh.github.com]:443 ([192.30.253.123]:443)' ...]]></description><category></category></item><item><title><![CDATA[npm ERR! code E404 npm ERR! 404 Not Found: html-webpack-plugin@latest]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/90394394</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/90394394</guid><author>fearlessxmm</author><pubDate>Tue, 21 May 2019 01:39:15 +0800</pubDate><description><![CDATA[最近因为webpack版本问题，一直报错，很揪心T_T
npm 安装 html-webpack-plugin插件配置启动页面
输入命令npm install html-webpack-plugin一直报404

查了很多资料，有的说是npm版本对应不上，需要更新，或者更新npm重装node；或者更简单粗暴，直接删了nodemodule文件夹。
以上的方法，都试过了，没用。
（怀疑人生ing…
后来...]]></description><category></category></item><item><title><![CDATA[npm和webpack的报错问题解决（持更）]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/90351959</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/90351959</guid><author>fearlessxmm</author><pubDate>Mon, 20 May 2019 00:13:02 +0800</pubDate><description><![CDATA[npm和webpack的问题
1.json文件解析错误：json不能有注释
json文件中不能有注释，否则解析不了。但js文件中的json可以有注释，是因为解析的是js。


2.XXX不是内部指令（但明明之前有装过）
原因：之前在装包的时候，可能等久了中途杀掉，导致有些包不完整，所以直接去nodemodule里看有没有；如果一直都是报一个一个的包没找到，那就直接把nodemodule文件夹删掉，...]]></description><category></category></item><item><title><![CDATA[npm i nrm -g 报错：npm ERR! AppData\Roaming\npm-cache\_logs\2019-05-17T07_40_00_938Z-debug.log]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/90305491</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/90305491</guid><author>fearlessxmm</author><pubDate>Sat, 18 May 2019 00:43:41 +0800</pubDate><description><![CDATA[今天在全局安装 nrm 的时候，一直安装不成功，总是报错。

后来查了资料，发现是需要清除缓存。
清除缓存：
npm cache clean --force

全局安装nrm：
npm install nrm -g
安装成功之后，输入指令nrm ls就可以查看当前所有可用的镜像源地址以及当前所使用的镜像源地址


...]]></description><category></category></item><item><title><![CDATA[js求浏览器页面某个位置的停留时间]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/90183705</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/90183705</guid><author>fearlessxmm</author><pubDate>Mon, 13 May 2019 23:35:23 +0800</pubDate><description><![CDATA[图：

思路：
js滚动监听：
   document.onscroll = function () {
   // 监听时，处理的代码
   }

某个位置h ，停留时间T
1.判断滚动条停止滚动，此时位置为高度h1。开始计时t1
2.停留时，滚动条的高度是不变的。所以只要滚动条位置不变，那就是在停留中。
3.读取当前位置h2,判断h2与h1是否相同，否的话，滚动条位置变化，也就是离开当前位置h...]]></description><category></category></item><item><title><![CDATA[fs.mkdir创建目录报错]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/90183063</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/90183063</guid><author>fearlessxmm</author><pubDate>Mon, 13 May 2019 22:45:11 +0800</pubDate><description><![CDATA[fs.mkdir创建不了多层目录？
最近在实现上一章博客：
《前端性能优化之图片压缩详细流程（工作实用）》
https://blog.youkuaiyun.com/fearlessxmm/article/details/89443129
的时候遇到一个问题：mkdir创建不了目录，总是报找不到该文件的错。
源目录：

在执行gulp任务时，流程中有一个步骤是需要创建dist/img/目录：
主要代码如下：
f...]]></description><category></category></item><item><title><![CDATA[前端性能优化之图片压缩详细流程（工作实用）]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/89443129</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/89443129</guid><author>fearlessxmm</author><pubDate>Mon, 22 Apr 2019 01:29:20 +0800</pubDate><description><![CDATA[前端性能优化之图片压缩详细流程
最近在工作中，对于图片压缩效果的需求比较迫切，在这里记录一下目前为止，优化多次的图片压缩流程。
在实际工作中，我们发现，只用一种方法并不能满足实际需要，总有一些图片比较特殊，所以我们选择使用gulp构建工具和手工在线压缩结合。
工作目录
这里简略写了一下必要的文件夹和文件，实际情况文件层次可以更加丰富
myDemo
-----dist
-----src
    	-...]]></description><category></category></item><item><title><![CDATA[gulp压缩图片组件对比，gulp-imagemin，gulp-tinypng-nokey和gulp-smushit使用方式以及图片优化]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/89288516</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/89288516</guid><author>fearlessxmm</author><pubDate>Sat, 13 Apr 2019 20:50:54 +0800</pubDate><description><![CDATA[图片的压缩处理可以很大程度提高网页性能。在实际工程中，借助自动化工具可以很方便地实现图片的压缩，本文主要介绍gulp工作流下图片的压缩方法。
1.基本使用方式对比
gulp-imagemin
1.功能：压缩图片
2.支持的图片格式：png，jpg，svg和gif
3.使用方式：

本地安装：npm install gulp-imagemin --save-dev

说明：–save-dev 保存配...]]></description><category></category></item><item><title><![CDATA[git的使用之add与commit]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/86550831</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/86550831</guid><author>fearlessxmm</author><pubDate>Sat, 19 Jan 2019 12:01:02 +0800</pubDate><description><![CDATA[初始化仓库

这个仓库会存放，git对我们的项目代码进行备份的文件
一般是隐藏的，可以在文件的查看选项勾选 隐藏文件 即可以看到.git文档


操作：

在项目目录(工作区)myproject中右键打开git Bash
命令 :git init



将会看到我们的myproject文件夹里有一个隐藏的git文件夹，如图


自报家门

就是在git中设置当前使用的用户是谁（每次备份都会把当前备...]]></description><category></category></item><item><title><![CDATA[git的使用之简介与安装]]></title><link>https://blog.youkuaiyun.com/fearlessxmm/article/details/86550685</link><guid>https://blog.youkuaiyun.com/fearlessxmm/article/details/86550685</guid><author>fearlessxmm</author><pubDate>Sat, 19 Jan 2019 11:46:04 +0800</pubDate><description><![CDATA[Git的简介

git 是一款源代码管理工具（版本控制工具）
类似的版本管理工具有：svn，vss，vcs

git的安装
（一）

1.首先要看自己的电脑是多少位的，我的是64位
2.去官网下载安装包就好，然后就一路选择next&amp;gt;，它默认的选项。




（二）

1.安装成功之后，在电脑的任何目录下单机右键，就会出现Git GUI Here和Git Bash Here



2.Git ...]]></description><category></category></item></channel></rss>