PromiseAsyncAwait
PromiseOrigin// wrapped into// 网络请求: aaa -> 自己处理(10行)// 处理: aaa111 -> 自己处理(10行)// 处理: aaa111222 -> 自己处理new Promise((resolve, reject) => { setTimeout(() => { resolve('aaa') }, 1000)}).then(res => { // 1 ...
Read more
explore-css-flex
Flex 布局ExplanationFlexible Box—弹性布局—为盒状模型提供最大的灵活性 Working Principleflex-basis 的默认 auto 值使得尺寸计算会检索并使用 flex item 的 main size property(width或height)作为其 flex-basis 的值,如果flex元素本身的尺寸是auto(如不显式指定尺寸),则取值为元素内容的尺寸。 在空间分配初始,根据 总空间 - flex-basis空间 = 剩余可分配空间 来计算剩余 ...
Read more
VueStudyNotesAll
Vue Study Notes(All)Read: https://liuhongwei3.github.io/Vue-Study-Notes More 详见 https://github.com/Liuhongwei3/Vue-Study-Notes
Read more
addAplayerByHexo
AplayerHref: https://github.com/DIYgod/APlayerDocument: https://aplayer.js.org/#/zh-Hans/Hexo-Aplayer: https://github.com/MoePlayer/hexo-tag-aplayer Install hexo-tag-aplayernpm install hexo-tag-aplayer --save Import CDNcdn: css: aplayer: https:/ ...
Read more
this指向问题
传统JS指向(理解) this是在函数被调用时进行绑定的,指向谁完全取决于函数在哪里被调用。 亦即 this 的指向不是函数被创建时绑定,而是被怎么样的方式调用时绑定的 默认绑定var name = 'window';function show(){ console.log(this); console.log(this.name); }show(); //window function show2(){ show(); //二次调用} ...
Read more
hexo优化系列
图片优化本站采用sm.ms图床,虽然速度不及某博,但是算是稳定方便,速度也还行。 百度谷歌优化百度站长平台会进行扫描分析,按照操作即可。 gulp进行html/css/js混淆压缩安装gulp以及插件npm i -g gulpnpm i --save gulp-clean-css gulp-uglify gulp-htmlmin gulp-htmlclean 验证版本以及依赖信息(出现以下即代表成功)C:\Users\28731>gulp --versionCLI version: 2. ...
Read more
Aria2Install
aria2官方解释aria2 is a utility for downloading files. The supported protocols are HTTP(S), FTP, SFTP, BitTorrent, and Metalink. aria2 can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth. It supports d ...
Read more
gitStudy
Github详细学习笔记 @Author Tadm @DateTime 2019-11-16 T08:45:24+0800 @return {Git Study} Features快照无差异使用Git,每次提交或保存项目状态时,Git基本上都会拍下当时所有文件的快照,并存储对该快照的引用。 ​ 为了提高效率,如果文件没有更改,Git不会再次存储该文件,而只是指向它已经存储的先前相同文件的链接。 几乎所有操作可以本地进行具有完整性​ Git中的所有内容在存储之前都经过校验和, ...
Read more
css3-doodle
CSS3-doodle 学习笔记先放几张效果图: // import the doodle path<script src="https://cdnjs.cloudflare.com/ajax/libs/css-doodle/0.2.3/css-doodle.min.js"></script><css-doodle grid="5"> :doodle { @size: 30vmax; grid-gap: 1px; ...
Read more
Github连接失败解决
github 连接超时解决可以直接在一下网站搜索查询github对应站点IP,添加至hosts(windows/system32/drivers/etc/hots)ipaddress $ ssh -T git@github.comConnection reset by 52.74.223.119 port 22 一直这样提示报错,测试 ping github.com 数据包丢失100%,因此需要在 hosts 文件里面加入以下信息: 192.30.253.112 github.com git ...
Read more