11 2019 档案

摘要:``` div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } ``` 阅读全文
posted @ 2019-11-28 15:32 小蓉儿 阅读(150) 评论(0) 推荐(0) 编辑
摘要:前端实现单行垂直居中用的最多的方法可能就是line height了吧。该属性在pc端和ios手机上效果都很好,可到了安卓手机,有很大几率发生文字上移的现象 知乎有人分析了导致这一现象的原因,Android浏览器下line height垂直居中为什么会偏离?大家可以试试文章中的解决方案,反正我试了并没 阅读全文
posted @ 2019-11-28 14:16 小蓉儿 阅读(434) 评论(0) 推荐(0) 编辑
摘要:苹方 简 常规体 苹方 简 极细体 苹方 简 细体 苹方 简 纤细体 苹方 简 中黑体 苹方 简 中粗体 苹方 繁 苹方 港 阅读全文
posted @ 2019-11-28 14:10 小蓉儿 阅读(1780) 评论(0) 推荐(0) 编辑
摘要:for of entries() 可以同时拿到数组的索引跟值 因此可以使用解构的语法: for of 示例 1. 求和 2.字符串 阅读全文
posted @ 2019-11-25 14:16 小蓉儿 阅读(371) 评论(0) 推荐(0) 编辑
摘要:const fruits = ['Apple','Banana','Orange','Mango']; es5: 可读性差 for(let i=0; i < fruits.length; i ++){ console.log(fruits[i]); }// Apple// Banana// Oran 阅读全文
posted @ 2019-11-25 13:36 小蓉儿 阅读(89) 评论(0) 推荐(0) 编辑
摘要:const numbers = ['one', 'two', 'three', 'four'] es5: const one = numbers[0]; //one const two = numbers[1]; //two es6: 获取到相应位置的数组原素的值 const [one, two] 阅读全文
posted @ 2019-11-25 10:55 小蓉儿 阅读(149) 评论(0) 推荐(0) 编辑
摘要:当我们要得到Tom对象的属性的时候, es5写法: const name = Tom.name const age = Tom.ageconst ..... console.log(name,age); // Tom Jones 25 es6写法: const { name, age} = Tom; 阅读全文
posted @ 2019-11-25 10:35 小蓉儿 阅读(128) 评论(0) 推荐(0) 编辑
摘要:1、在阿里矢量图标库将想要的图标加入购物车,然后在购物车中将图标添加到项目; 2、到我的项目中,将图标下载到本地 3.在vue项目的assets文件夹下新建一个iconfont文件夹(名字自定义),将刚刚下载下来的代码包中的 iconfont.css、 iconfont.eto、 iconfont. 阅读全文
posted @ 2019-11-11 11:17 小蓉儿 阅读(780) 评论(0) 推荐(0) 编辑
摘要:一、全部引入1、安装mint-ui npm intall mint-ui --save 2、main.js中引入mint-ui import MintUI from 'mint-ui' import 'mint-ui/lib/style.css' Vue.use(MintUI) 3、组件调用 <mt 阅读全文
posted @ 2019-11-11 09:55 小蓉儿 阅读(3040) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示