自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 eslint语法错误详解

昨天npm run dev的时候还好好地不会报红,今天早上npm run dev就启动失败了,具体的报错是:http://eslint.org/docs/rules/eol-lasthttp://eslint.org/docs/rules/indenthttp://eslint.org/docs/rules/key-spacinghttp://eslint.org/docs/rules/semih...

2018-06-15 10:38:28 6648 2

转载 npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall scandir解决方法

在vue init webpack my-vue的时候出现 npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall scandir 报错emmm.... 不知道什么原因报的错,最后还是解决了,只需update最新npm即可npm install -g npm @latest然后在更新vue-clinpm install -g vue-cl...

2018-06-13 10:43:31 20903 6

原创 npm err! Unexpected end of JSON input while parsing near解决办法

npm install时出现npm err! Unexpected end of JSON input while parsing near错误输入  npm cache clean --fore 即可解决问题啦啦啦~~希望可以帮助到小伙伴们

2018-06-13 09:56:06 8608 3

原创 如何将npm升级到最新版本

查看当前版本  npm -v更新到最新版本  npm install -g npm更新到指定版本 npm -g install npm@5.6.0 (@后面加指定版本号)啦啦啦~~希望能帮到小伙伴们呦

2018-06-13 09:20:29 101920 6

原创 Vue设置浏览器title-icon

vue项目如何设置浏览器title-icon呢?步骤如下:(1)、把icon图标存放在static目录下(2)、在index.html页面添加 <link rel ="shortcut icon" type="image/x-icon" href="static/favicon.ico">(3)、保存页面刷新浏览器即可...

2018-06-10 23:14:19 3841

原创 VUE设置浏览器icon图标

Vue怎么设置左上角icon图标呢?步骤如下:(1)、提前把icon图标copy到static目录下(2)、在index.html页面添加 <link rel ="shortcut icon" type="image/x-icon" href="static/favicon.ico">(3)、保存页面刷新浏览器即可啦啦啦~~希望能帮到小伙伴们...

2018-06-10 23:04:17 35966

原创 显示隐藏的方法总结

怎么让一个元素显示隐藏呢?css:display:none / block;//完全消失,不占文档宽高opacity:0 / 1;//完全透明,但还是文档流内,有大小visibility:hidden / visible;//相当于透明,还存在于文档流中,有大小JQuery:$(ele).hide() / show();$(ele).fadeOut(500) / fadeIn(500);//500...

2018-06-06 17:41:17 213

原创 CSS之盒模型

盒模型有两种类型:标准(W3C)盒模型、IE盒模型,如下图两者区别在于content不同:标准盒模型content=width=200pxIE盒模型content=width+padding+border=200px+30px*2+5px*2=270px那么问题来了,如何自由切换盒模型呢?很简单的设置css3的box-sizing属性即可,标准盒模型 box-sizing:content-box;...

2018-06-06 16:53:59 177

原创 offsetWidth、offsetHeight、clientWidth、clientHeight、innerWidth、innerHeight、Width()、Height()详解

offsetWidth = width+padding+borderjs:var offsetW = document.documentElement.offsetWidth || document.body.offsetWidth;//兼容浏览器jq:$('body')[0].offsetWidth;offsetHeight = height+padding+borderjs:var offse...

2018-06-05 16:32:34 1569

原创 typeof() js详解

typeof 用来判断给定变量的六种数据类型(String、Number、Object、Boolean、Undefined、Function)eg:var str = 'abc';var arr = ['a','b','c'];console.log(typeof 12345);//number(数值)console.log(typeof true);//boolean(布尔值)console.l...

2018-06-04 17:01:32 928

空空如也

空空如也

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

TA关注的人

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