自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 mac下安装wget命令dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib Referenced from:

mac下安装wget命令 遇到的问题 dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib Referenced from: /usr/local/bin/wget Reason: image not found [1] 15507 abort wget 解决方法 缺什么装什么 ...

2018-07-25 19:52:07 9144

原创 for循环splice遇到的坑

错误代码 console.log(this.query.length); for (let i = 1; i < this.query.length; i++) { console.log('out', i); console.log(this.query[i]); if (!this.query[i].trim()) { console.l...

2018-07-24 17:50:18 1601 2

原创 webpack2配置浏览器自动刷新

前言 老项目用的webpack2,有浏览器刷新开发起来方便多了 解决 单页面的 entry: [ // 给webpack-dev-server启动一个本地服务,并连接到8080端口 'webpack-dev-server/client?http://localhost:8080', // 给上面启动的本地服务开启自动刷新功能,'only-dev-server'的...

2018-07-19 15:22:04 883

原创 npm i新项目下载报错 found for array-tree-filter

报错信息 npm ERR! code ETARGET npm ERR! notarget No matching version found for array-tree-filter@1.0.2 npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget ...

2018-07-10 20:17:23 2957

原创 js异步解决

https://segmentfault.com/a/1190000012738395 async function main() { let docs = [{}, {}, {}]; docs.forEach(async function (doc) { await post(doc); console.log('main'); }); } function ...

2018-07-04 20:19:25 329

原创 URL编码那些事

URL编码规范 网络标准RFC 1738做了硬性规定: "...Only alphanumerics [0-9a-zA-Z], the special characters "$-_.+!*'()," [not including the quotes - ed], and reserved characters used for their reserved purposes may b...

2018-07-04 15:40:01 206

原创 safari浏览器计算div高度不一致

渲染之前window.onload是一个值,渲染完成之后是另一个值。 原因 http://www.w3help.org/zh-cn/causes/RD5017 行高没有设置,导致渲染前计算的行高和实际出来的高度不一致导致的 解决方案 统一给body设置line-height进行继承,这样计算高度就不会有问题了 ...

2018-07-03 15:22:53 2227

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除